Module Name: src
Committed By: christos
Date: Tue Nov 5 16:04:13 UTC 2013
Modified Files:
src/sys/arch/x86/include: cpu.h
Log Message:
initialize cii before using it.
To generate a diff of this commit:
cvs rdiff -u -r1.55 -r1.56 src/sys/arch/x86/include/cpu.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/x86/include/cpu.h
diff -u src/sys/arch/x86/include/cpu.h:1.55 src/sys/arch/x86/include/cpu.h:1.56
--- src/sys/arch/x86/include/cpu.h:1.55 Wed Oct 23 16:18:50 2013
+++ src/sys/arch/x86/include/cpu.h Tue Nov 5 11:04:13 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.55 2013/10/23 20:18:50 drochner Exp $ */
+/* $NetBSD: cpu.h,v 1.56 2013/11/05 16:04:13 christos Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -285,7 +285,8 @@ extern struct cpu_info cpu_info_primary;
extern struct cpu_info *cpu_info_list;
#define CPU_INFO_ITERATOR int
-#define CPU_INFO_FOREACH(cii, ci) __USE(cii), ci = cpu_info_list; \
+#define CPU_INFO_FOREACH(cii, ci) cii = 0, __USE(cii), \
+ ci = cpu_info_list; \
ci != NULL; ci = ci->ci_next
#define CPU_STARTUP(_ci, _target) ((_ci)->ci_func->start(_ci, _target))