From 2d503ac381db486a19d12c568260f19227efd900 Mon Sep 17 00:00:00 2001 From: tsutsui Date: Thu, 11 Jun 2009 14:42:47 +0000 Subject: [PATCH] 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 martin@. --- sys/arch/sparc/sparc/cpu.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/arch/sparc/sparc/cpu.c b/sys/arch/sparc/sparc/cpu.c index ffc4ebd56e7a..262d521bee67 100644 --- a/sys/arch/sparc/sparc/cpu.c +++ b/sys/arch/sparc/sparc/cpu.c @@ -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 -__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 @@ getcpuinfo(struct cpu_info *sc, int node) 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");