Fix the pt_entry_t and pd_entry_t types. They were previously pointers to
authorMatthew Dillon <dillon@dragonflybsd.org>
Mon, 3 Nov 2003 22:50:15 +0000 (22:50 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Mon, 3 Nov 2003 22:50:15 +0000 (22:50 +0000)
commitb5b324108400be548c82a741b97e9fa96f1c91f0
tree2add1469f7216ca7fbaf6ff5f83e82521b8a473d
parentcd5332df96523d4fc3e7d827e405c06f719a37a6
Fix the pt_entry_t and pd_entry_t types.  They were previously pointers to
integers which is completely bogus.  What they really represent are page
table entries so define them as __uint32_t.  Also add a vtophys_pte()
macro to distinguish between physical addresses (vm_paddr_t) and
physical addresses represented in PTE form (pt_entry_t).  vm_paddr_t can
be 64 bits even on IA32 boxes without PAE which use 32 bit PTE's.

Taken loosely from: FreeBSD-4.x
14 files changed:
sys/cpu/i386/include/pmap.h
sys/cpu/i386/include/types.h
sys/cpu/i386/include/vm86.h
sys/i386/i386/machdep.c
sys/i386/i386/mp_machdep.c
sys/i386/i386/pmap.c
sys/i386/i386/vm86.c
sys/i386/include/pmap.h
sys/i386/include/types.h
sys/i386/include/vm86.h
sys/platform/pc32/i386/machdep.c
sys/platform/pc32/i386/mp_machdep.c
sys/platform/pc32/i386/pmap.c
sys/platform/pc32/i386/vm86.c