Module Name: src Committed By: mrg Date: Sun Dec 20 03:50:57 UTC 2009
Modified Files: src/sys/arch/sparc/sparc: cpuvar.h Log Message: make CPU_INFO_FOREACH() set the iterator count to '0' in the !MP case. To generate a diff of this commit: cvs rdiff -u -r1.80 -r1.81 src/sys/arch/sparc/sparc/cpuvar.h 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/cpuvar.h diff -u src/sys/arch/sparc/sparc/cpuvar.h:1.80 src/sys/arch/sparc/sparc/cpuvar.h:1.81 --- src/sys/arch/sparc/sparc/cpuvar.h:1.80 Sun Dec 20 03:38:59 2009 +++ src/sys/arch/sparc/sparc/cpuvar.h Sun Dec 20 03:50:56 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: cpuvar.h,v 1.80 2009/12/20 03:38:59 mrg Exp $ */ +/* $NetBSD: cpuvar.h,v 1.81 2009/12/20 03:50:56 mrg Exp $ */ /* * Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -425,7 +425,7 @@ #if defined(MULTIPROCESSOR) || defined(MODULAR) || defined(_MODULE) #define CPU_INFO_FOREACH(cii, cp) cii = 0; (cp = cpus[cii]) && cp->eintstack && cii < sparc_ncpus; cii++ #else -#define CPU_INFO_FOREACH(cii, cp) (void)cii, cp = curcpu(); cp != NULL; cp = NULL +#define CPU_INFO_FOREACH(cii, cp) cii = 0, cp = curcpu(); cp != NULL; cp = NULL #endif /*