Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/include Use PDP_SIZE for NTOPLEVEL_PDES (numbe...
details: https://anonhg.NetBSD.org/src/rev/38008aaf2db7
branches: trunk
changeset: 752540:38008aaf2db7
user: jym <jym%NetBSD.org@localhost>
date: Mon Mar 01 00:55:33 2010 +0000
description:
Use PDP_SIZE for NTOPLEVEL_PDES (number of top level PDEs) instead of
#ifdef'ing PAE.
diffstat:
sys/arch/i386/include/pmap.h | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diffs (22 lines):
diff -r 0cc6eeade302 -r 38008aaf2db7 sys/arch/i386/include/pmap.h
--- a/sys/arch/i386/include/pmap.h Mon Mar 01 00:41:35 2010 +0000
+++ b/sys/arch/i386/include/pmap.h Mon Mar 01 00:55:33 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.h,v 1.104 2010/02/09 22:51:13 jym Exp $ */
+/* $NetBSD: pmap.h,v 1.105 2010/03/01 00:55:33 jym Exp $ */
/*
*
@@ -279,11 +279,7 @@
#define NKL2_START_ENTRIES 0 /* XXX computed on runtime */
#define NKL1_START_ENTRIES 0 /* XXX unused */
-#ifdef PAE
-#define NTOPLEVEL_PDES (PAGE_SIZE * 4 / (sizeof (pd_entry_t)))
-#else
-#define NTOPLEVEL_PDES (PAGE_SIZE / (sizeof (pd_entry_t)))
-#endif
+#define NTOPLEVEL_PDES (PAGE_SIZE * PDP_SIZE / (sizeof (pd_entry_t)))
#define NPDPG (PAGE_SIZE / sizeof (pd_entry_t))
Home |
Main Index |
Thread Index |
Old Index