summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/param.h
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2003-03-30 05:24:52 +0000
committerjake <jake@FreeBSD.org>2003-03-30 05:24:52 +0000
commitabd082c83338e1987726a6ef68574de92e2b5ce7 (patch)
tree41325c88af7f4552023a9b5c8da9296a899c3f45 /sys/i386/include/param.h
parent751b8b88db5312dc1394b1ddadf537cbe79765d8 (diff)
downloadFreeBSD-src-abd082c83338e1987726a6ef68574de92e2b5ce7.zip
FreeBSD-src-abd082c83338e1987726a6ef68574de92e2b5ce7.tar.gz
- Add support for PAE and more than 4 gigs of ram on x86, dependent on the
kernel opition 'options PAE'. This will only work with device drivers which either use busdma, or are able to handle 64 bit physical addresses. Thanks to Lanny Baron from FreeBSD Systems for the loan of a test machine with 6 gigs of ram. Sponsored by: DARPA, Network Associates Laboratories, FreeBSD Systems
Diffstat (limited to 'sys/i386/include/param.h')
-rw-r--r--sys/i386/include/param.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/i386/include/param.h b/sys/i386/include/param.h
index 4da42a9..c3b9c59 100644
--- a/sys/i386/include/param.h
+++ b/sys/i386/include/param.h
@@ -87,8 +87,13 @@
#define PAGE_MASK (PAGE_SIZE-1)
#define NPTEPG (PAGE_SIZE/(sizeof (pt_entry_t)))
+#ifdef PAE
+#define NPGPTD 4
+#define PDRSHIFT 21 /* LOG2(NBPDR) */
+#else
#define NPGPTD 1
#define PDRSHIFT 22 /* LOG2(NBPDR) */
+#endif
#define NBPTD (NPGPTD<<PAGE_SHIFT)
#define NPDEPTD (NBPTD/(sizeof (pd_entry_t)))
OpenPOWER on IntegriCloud