diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2010-12-31 21:38:09 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2010-12-31 21:38:09 +0000 |
commit | ac70415760e796ddc49d0a3f42cef4d80e3cd79c (patch) | |
tree | 320bd94ef834f8806974e699f17f9347fc1ed7e8 /sys/arch/mvme88k/include/pmap.h | |
parent | 0b6d62f095cb4dece152a6de03a65095436aed03 (diff) |
Massive overhauling of the m88k pmap, though I can't pretend it's a new pmap
since a large part of the structures and logic remains.
Since m88k has separate supervisor/user spaces, we can map physical memory 1:1
in supervisor space, and have the kernel virtual address space start from the
end of physical memory.
This allows us to switch to __HAVE_PMAP_DIRECT. And to get rid of the double
mapped sdt, since now their virtual and physical addresses will always match.
The upper bound of the kernel virtual memory space is now platform dependent,
until the code which relies upon some hardware devices being mapped 1:1 in
supervisor mode is updated to no longer require this (this is mainly a PITA on
luna88k, where onboard devices start at 0x40000000, leaving only 1GB of KVA at
the moment - still much better than the previous 512MB).
Tested on mvme88k only (187, 188, 197LE, 197DP). Other platforms ought to
work, aviion will be checked shortly and fixed if necessary. No known
OpenBSD/luna88k system in working condition at the moment.
Diffstat (limited to 'sys/arch/mvme88k/include/pmap.h')
-rw-r--r-- | sys/arch/mvme88k/include/pmap.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sys/arch/mvme88k/include/pmap.h b/sys/arch/mvme88k/include/pmap.h index 12165a55839..dfd79a91c1d 100644 --- a/sys/arch/mvme88k/include/pmap.h +++ b/sys/arch/mvme88k/include/pmap.h @@ -1,13 +1,3 @@ -/* $OpenBSD: pmap.h,v 1.36 2004/07/25 11:06:42 miod Exp $ */ +/* $OpenBSD: pmap.h,v 1.37 2010/12/31 21:38:08 miod Exp $ */ /* public domain */ - -#ifndef _MVME88K_PMAP_H_ -#define _MVME88K_PMAP_H_ - #include <m88k/pmap.h> - -#ifdef _KERNEL -vaddr_t pmap_bootstrap_md(vaddr_t); -#endif - -#endif _MVME88K_PMAP_H_ |