Module Name: src Committed By: jym Date: Wed Feb 10 00:39:31 UTC 2010
Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: To properly account for the total number of pages allocated for PDP, use PDP_SIZE, as PAE (i386) requires 4 pages instead of 1. To generate a diff of this commit: cvs rdiff -u -r1.101 -r1.102 src/sys/arch/x86/x86/pmap.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/x86/x86/pmap.c diff -u src/sys/arch/x86/x86/pmap.c:1.101 src/sys/arch/x86/x86/pmap.c:1.102 --- src/sys/arch/x86/x86/pmap.c:1.101 Tue Feb 9 22:51:14 2010 +++ src/sys/arch/x86/x86/pmap.c Wed Feb 10 00:39:30 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: pmap.c,v 1.101 2010/02/09 22:51:14 jym Exp $ */ +/* $NetBSD: pmap.c,v 1.102 2010/02/10 00:39:30 jym Exp $ */ /* * Copyright (c) 2007 Manuel Bouyer. @@ -149,7 +149,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.101 2010/02/09 22:51:14 jym Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.102 2010/02/10 00:39:30 jym Exp $"); #include "opt_user_ldt.h" #include "opt_lockdebug.h" @@ -2217,7 +2217,8 @@ pmap->pm_ptphint[i] = NULL; } pmap->pm_stats.wired_count = 0; - pmap->pm_stats.resident_count = 1; /* count the PDP allocd below */ + /* count the PDP allocd below */ + pmap->pm_stats.resident_count = PDP_SIZE; #if !defined(__x86_64__) pmap->pm_hiexec = 0; #endif /* !defined(__x86_64__) */