summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/pmap.h
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2003-04-03 23:44:35 +0000
committerjake <jake@FreeBSD.org>2003-04-03 23:44:35 +0000
commit68ea55c96293d9079e020a028f673b022bcaeb1c (patch)
tree5db3b8788567013d2d5e72d15a2cba1f566db524 /sys/amd64/include/pmap.h
parent383d50b298f5c5c45b14f5aa964f3c4a771823e2 (diff)
downloadFreeBSD-src-68ea55c96293d9079e020a028f673b022bcaeb1c.zip
FreeBSD-src-68ea55c96293d9079e020a028f673b022bcaeb1c.tar.gz
- Removed APTD and associated macros, it is no longer used.
BANG BANG BANG etc. Sponsored by: DARPA, Network Associates Laboratories
Diffstat (limited to 'sys/amd64/include/pmap.h')
-rw-r--r--sys/amd64/include/pmap.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/sys/amd64/include/pmap.h b/sys/amd64/include/pmap.h
index f044d45..d1e2975 100644
--- a/sys/amd64/include/pmap.h
+++ b/sys/amd64/include/pmap.h
@@ -109,9 +109,9 @@
#endif
#ifndef NKPDE
#ifdef SMP
-#define NKPDE (KVA_PAGES - (NPGPTD + 1)) /* number of page tables/pde's */
+#define NKPDE (KVA_PAGES - 1) /* number of page tables/pde's */
#else
-#define NKPDE (KVA_PAGES - NPGPTD) /* number of page tables/pde's */
+#define NKPDE (KVA_PAGES) /* number of page tables/pde's */
#endif
#endif
@@ -123,12 +123,11 @@
*
* SMP_PRIVPAGES: The per-cpu address space is 0xff80000 -> 0xffbfffff
*/
-#define APTDPTDI (NPDEPTD-NPGPTD) /* alt ptd entry that points to APTD */
#ifdef SMP
-#define MPPTDI (APTDPTDI-1) /* per cpu ptd entry */
+#define MPPTDI (NPDEPTD-1) /* per cpu ptd entry */
#define KPTDI (MPPTDI-NKPDE) /* start of kernel virtual pde's */
#else
-#define KPTDI (APTDPTDI-NKPDE)/* start of kernel virtual pde's */
+#define KPTDI (NPDEPTD-NKPDE)/* start of kernel virtual pde's */
#endif /* SMP */
#define PTDPTDI (KPTDI-NPGPTD) /* ptd entry that points to ptd! */
@@ -166,9 +165,9 @@ typedef uint32_t pt_entry_t;
* and directories.
*/
#ifdef _KERNEL
-extern pt_entry_t PTmap[], APTmap[];
-extern pd_entry_t PTD[], APTD[];
-extern pd_entry_t PTDpde[], APTDpde[];
+extern pt_entry_t PTmap[];
+extern pd_entry_t PTD[];
+extern pd_entry_t PTDpde[];
#ifdef PAE
extern pdpt_entry_t *IdlePDPT;
@@ -184,7 +183,6 @@ extern pd_entry_t *IdlePTD; /* physical address of "Idle" state directory */
* the corresponding pde that in turn maps it.
*/
#define vtopte(va) (PTmap + i386_btop(va))
-#define avtopte(va) (APTmap + i386_btop(va))
/*
* Routine: pmap_kextract
OpenPOWER on IntegriCloud