summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-11-17 01:38:32 +0000
committerpeter <peter@FreeBSD.org>2001-11-17 01:38:32 +0000
commitaf748d5a05768a4d3415729bdae7304946c5ae98 (patch)
tree9833c172302acc4685ad6445e4c4862ef22cb129 /sys/amd64/include
parent6c410b31e45c3f9eeb3a3037bb1c5f8c16efb8cc (diff)
downloadFreeBSD-src-af748d5a05768a4d3415729bdae7304946c5ae98.zip
FreeBSD-src-af748d5a05768a4d3415729bdae7304946c5ae98.tar.gz
Start bringing i386/pmap.c into line with cleanups that were done to
alpha pmap. In particular - - pd_entry_t and pt_entry_t are now u_int32_t instead of a pointer. This is to enable cleaner PAE and x86-64 support down the track sor that we can change the pd_entry_t/pt_entry_t types to 64 bit entities. - Terminate "unsigned *ptep, pte" with extreme prejudice and use the correct pt_entry_t/pd_entry_t types. - Various other cosmetic changes to match cleanups elsewhere. - This eliminates a boatload of casts. - use VM_MAXUSER_ADDRESS in place of UPT_MIN_ADDRESS in a couple of places where we're testing user address space limits. Assuming the page tables start directly after the end of user space is not a safe assumption. There is still more to go.
Diffstat (limited to 'sys/amd64/include')
-rw-r--r--sys/amd64/include/pmap.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/amd64/include/pmap.h b/sys/amd64/include/pmap.h
index a6eabae..b7ccb92 100644
--- a/sys/amd64/include/pmap.h
+++ b/sys/amd64/include/pmap.h
@@ -136,8 +136,8 @@
#include <sys/queue.h>
-typedef unsigned int *pd_entry_t;
-typedef unsigned int *pt_entry_t;
+typedef u_int32_t pd_entry_t;
+typedef u_int32_t pt_entry_t;
#define PDESIZE sizeof(pd_entry_t) /* for assembly files */
#define PTESIZE sizeof(pt_entry_t) /* for assembly files */
@@ -147,8 +147,9 @@ typedef unsigned int *pt_entry_t;
* and directories.
*/
#ifdef _KERNEL
-extern pt_entry_t PTmap[], APTmap[], Upte;
-extern pd_entry_t PTD[], APTD[], PTDpde, APTDpde, Upde;
+extern pt_entry_t PTmap[], APTmap[];
+extern pd_entry_t PTD[], APTD[];
+extern pd_entry_t PTDpde, APTDpde;
extern pd_entry_t IdlePTD; /* physical address of "Idle" state directory */
#endif
OpenPOWER on IntegriCloud