summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2003-04-04 10:09:44 +0000
committerjake <jake@FreeBSD.org>2003-04-04 10:09:44 +0000
commit098b68fc78b19fbb3d51f0171640ee3012424e32 (patch)
tree89ebdafc426c7d3ab0f47e21d1dab86d782b4b36 /sys/amd64/include
parentff6ab443fdfac54d45368cde95eed170b53a6cbe (diff)
downloadFreeBSD-src-098b68fc78b19fbb3d51f0171640ee3012424e32.zip
FreeBSD-src-098b68fc78b19fbb3d51f0171640ee3012424e32.tar.gz
Bandaid fix for previous commit while I figure out why it broke. This
caused crashes early in boot on i386 UP machines. Reported by: phk Pointy hat to: jake
Diffstat (limited to 'sys/amd64/include')
-rw-r--r--sys/amd64/include/pmap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/include/pmap.h b/sys/amd64/include/pmap.h
index d1e2975..b5e2378 100644
--- a/sys/amd64/include/pmap.h
+++ b/sys/amd64/include/pmap.h
@@ -111,7 +111,7 @@
#ifdef SMP
#define NKPDE (KVA_PAGES - 1) /* number of page tables/pde's */
#else
-#define NKPDE (KVA_PAGES) /* number of page tables/pde's */
+#define NKPDE (KVA_PAGES - 1) /* number of page tables/pde's */
#endif
#endif
@@ -127,7 +127,7 @@
#define MPPTDI (NPDEPTD-1) /* per cpu ptd entry */
#define KPTDI (MPPTDI-NKPDE) /* start of kernel virtual pde's */
#else
-#define KPTDI (NPDEPTD-NKPDE)/* start of kernel virtual pde's */
+#define KPTDI ((NPDEPTD-1)-NKPDE)/* start of kernel virtual pde's */
#endif /* SMP */
#define PTDPTDI (KPTDI-NPGPTD) /* ptd entry that points to ptd! */
OpenPOWER on IntegriCloud