Module Name: src
Committed By: tsutsui
Date: Thu Jun 11 14:42:47 UTC 2009
Modified Files:
src/sys/arch/sparc/sparc: cpu.c
Log Message:
Call cache_flush_all() in getcpuinfo().
Not sure if it's actually necessary, but it fixes panic
"makememarr: cannot find "memory" node" on RT626 HyperSPARC.
Ok'ed by mar...@.
To generate a diff of this commit:
cvs rdiff -u -r1.217 -r1.218 src/sys/arch/sparc/sparc/cpu.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/sparc/sparc/cpu.c
diff -u src/sys/arch/sparc/sparc/cpu.c:1.217 src/sys/arch/sparc/sparc/cpu.c:1.218
--- src/sys/arch/sparc/sparc/cpu.c:1.217 Sun May 31 20:09:44 2009
+++ src/sys/arch/sparc/sparc/cpu.c Thu Jun 11 14:42:47 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.217 2009/05/31 20:09:44 mrg Exp $ */
+/* $NetBSD: cpu.c,v 1.218 2009/06/11 14:42:47 tsutsui Exp $ */
/*
* Copyright (c) 1996
@@ -52,7 +52,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.217 2009/05/31 20:09:44 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.218 2009/06/11 14:42:47 tsutsui Exp $");
#include "opt_multiprocessor.h"
#include "opt_lockdebug.h"
@@ -1942,6 +1942,7 @@
sc->vcache_flush_segment = sc->sp_vcache_flush_segment;
sc->vcache_flush_region = sc->sp_vcache_flush_region;
sc->vcache_flush_context = sc->sp_vcache_flush_context;
+ (*sc->cache_flush_all)();
return;
}
panic("Out of CPUs");