Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 To properly account for the total number of...
details: https://anonhg.NetBSD.org/src/rev/7633302db4a8
branches: trunk
changeset: 751973:7633302db4a8
user: jym <jym%NetBSD.org@localhost>
date: Wed Feb 10 00:39:30 2010 +0000
description:
To properly account for the total number of pages allocated for PDP, use
PDP_SIZE, as PAE (i386) requires 4 pages instead of 1.
diffstat:
sys/arch/x86/x86/pmap.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r b0bed7e74c67 -r 7633302db4a8 sys/arch/x86/x86/pmap.c
--- a/sys/arch/x86/x86/pmap.c Tue Feb 09 23:52:13 2010 +0000
+++ b/sys/arch/x86/x86/pmap.c Wed Feb 10 00:39:30 2010 +0000
@@ -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__) */
Home |
Main Index |
Thread Index |
Old Index