Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/sparc Make sure to initialize cpus[0] which w...
details: https://anonhg.NetBSD.org/src/rev/a9ea6d289d5c
branches: trunk
changeset: 747314:a9ea6d289d5c
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Thu Sep 10 14:12:02 2009 +0000
description:
Make sure to initialize cpus[0] which will also be used as cpuinfo
for sun4 and sun4c, not only for sun4m. Okay'ed by mrg@.
diffstat:
sys/arch/sparc/sparc/pmap.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 5654ba1e3e4c -r a9ea6d289d5c sys/arch/sparc/sparc/pmap.c
--- a/sys/arch/sparc/sparc/pmap.c Thu Sep 10 13:17:39 2009 +0000
+++ b/sys/arch/sparc/sparc/pmap.c Thu Sep 10 14:12:02 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.333 2009/08/16 14:06:36 skrll Exp $ */
+/* $NetBSD: pmap.c,v 1.334 2009/09/10 14:12:02 tsutsui Exp $ */
/*
* Copyright (c) 1996
@@ -56,7 +56,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.333 2009/08/16 14:06:36 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.334 2009/09/10 14:12:02 tsutsui Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -3467,6 +3467,7 @@
setpte4(p, getpte4(p) & ~PG_NC);
}
+ cpus[0] = (struct cpu_info *)CPUINFO_VA;
}
#endif
Home |
Main Index |
Thread Index |
Old Index