Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/xen/x86 Use macro PDP_SIZE instead of numeric const...
details: https://anonhg.NetBSD.org/src/rev/535f0f26da4f
branches: trunk
changeset: 772437:535f0f26da4f
user: cherry <cherry%NetBSD.org@localhost>
date: Wed Jan 04 10:30:23 2012 +0000
description:
Use macro PDP_SIZE instead of numeric constant, for unshared PAE L3 entries.
Thanks jym@
diffstat:
sys/arch/xen/x86/cpu.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 3278ed0716ec -r 535f0f26da4f sys/arch/xen/x86/cpu.c
--- a/sys/arch/xen/x86/cpu.c Wed Jan 04 08:38:20 2012 +0000
+++ b/sys/arch/xen/x86/cpu.c Wed Jan 04 10:30:23 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.74 2011/12/30 19:18:35 cherry Exp $ */
+/* $NetBSD: cpu.c,v 1.75 2012/01/04 10:30:23 cherry Exp $ */
/* NetBSD: cpu.c,v 1.18 2004/02/20 17:35:01 yamt Exp */
/*-
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.74 2011/12/30 19:18:35 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.75 2012/01/04 10:30:23 cherry Exp $");
#include "opt_ddb.h"
#include "opt_multiprocessor.h"
@@ -1276,7 +1276,7 @@
/* Initialise L2 entries 0 - 2: Point them to pmap_kernel() */
int i;
- for (i = 0; i < 3; i++ ) {
+ for (i = 0 ; i < PDP_SIZE - 1; i++) {
ci->ci_pae_l3_pdir[i] =
xpmap_ptom_masked(pmap_kernel()->pm_pdirpa[i]) | PG_V;
}
Home |
Main Index |
Thread Index |
Old Index