summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2008-09-25 07:05:17 +0000
committerkmacy <kmacy@FreeBSD.org>2008-09-25 07:05:17 +0000
commit7d166e4194ca088a7c007b246cc940359db98b09 (patch)
tree281628a9a1164e5f2b051ec0a5b8c0b3df19640f
parent562209dc2488ea36065e127e3ebb0c612f991cc9 (diff)
downloadFreeBSD-src-7d166e4194ca088a7c007b246cc940359db98b09.zip
FreeBSD-src-7d166e4194ca088a7c007b246cc940359db98b09.tar.gz
add NPGPTD_SHIFT for the nkpt calculation
MFC after: 1 month
-rw-r--r--sys/i386/include/param.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/i386/include/param.h b/sys/i386/include/param.h
index 1251009..7f4be06d 100644
--- a/sys/i386/include/param.h
+++ b/sys/i386/include/param.h
@@ -82,9 +82,11 @@
#ifdef PAE
#define NPGPTD 4
#define PDRSHIFT 21 /* LOG2(NBPDR) */
+#define NPGPTD_SHIFT 9
#else
#define NPGPTD 1
#define PDRSHIFT 22 /* LOG2(NBPDR) */
+#define NPGPTD_SHIFT 10
#endif
#define NBPTD (NPGPTD<<PAGE_SHIFT)
OpenPOWER on IntegriCloud