From d967c640a378bb9b62cf39ae5b78e42be70fc023 Mon Sep 17 00:00:00 2001 From: jym Date: Mon, 1 Mar 2010 00:55:33 +0000 Subject: [PATCH] Use PDP_SIZE for NTOPLEVEL_PDES (number of top level PDEs) instead of #ifdef'ing PAE. --- sys/arch/i386/include/pmap.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/sys/arch/i386/include/pmap.h b/sys/arch/i386/include/pmap.h index dab06c2ebd87..c302e6bd2f23 100644 --- a/sys/arch/i386/include/pmap.h +++ b/sys/arch/i386/include/pmap.h @@ -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))