From 7e29958aa5e627515df0e5204e5ace8da2fa148c Mon Sep 17 00:00:00 2001 From: uwe Date: Mon, 14 Nov 2005 03:11:38 +0000 Subject: [PATCH] Catch up with changes to make this compile for MULTIPROCESSOR. While here add some #endif comments. --- sys/arch/sparc/sparc/kgdb_machdep.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/sys/arch/sparc/sparc/kgdb_machdep.c b/sys/arch/sparc/sparc/kgdb_machdep.c index e7eab4e56fb6..df216b50d5a3 100644 --- a/sys/arch/sparc/sparc/kgdb_machdep.c +++ b/sys/arch/sparc/sparc/kgdb_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: kgdb_machdep.c,v 1.14 2003/08/07 16:29:45 agc Exp $ */ +/* $NetBSD: kgdb_machdep.c,v 1.15 2005/11/14 03:11:38 uwe Exp $ */ /*- * Copyright (c) 1997 The NetBSD Foundation, Inc. * All rights reserved. @@ -126,7 +126,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: kgdb_machdep.c,v 1.14 2003/08/07 16:29:45 agc Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kgdb_machdep.c,v 1.15 2005/11/14 03:11:38 uwe Exp $"); #include "opt_kgdb.h" #include "opt_multiprocessor.h" @@ -224,9 +224,10 @@ kgdb_suspend() { while (cpuinfo.flags & CPUFLG_PAUSED) - cpuinfo.cache_flush((caddr_t)&cpuinfo.flags, sizeof(cpuinfo.flags)); + cache_flush((caddr_t)__UNVOLATILE(&cpuinfo.flags), + sizeof(cpuinfo.flags)); } -#endif +#endif /* MULTIPROCESSOR */ /* * Trap into kgdb to wait for debugger to connect, @@ -430,4 +431,4 @@ kgdb_acc(va, len) return (1); } -#endif +#endif /* KGDB */