Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/include initialize cii before using it.
details: https://anonhg.NetBSD.org/src/rev/c4fc0f7ebb81
branches: trunk
changeset: 791120:c4fc0f7ebb81
user: christos <christos%NetBSD.org@localhost>
date: Tue Nov 05 16:04:13 2013 +0000
description:
initialize cii before using it.
diffstat:
sys/arch/x86/include/cpu.h | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r d7d9a8fab097 -r c4fc0f7ebb81 sys/arch/x86/include/cpu.h
--- a/sys/arch/x86/include/cpu.h Tue Nov 05 14:26:19 2013 +0000
+++ b/sys/arch/x86/include/cpu.h Tue Nov 05 16:04:13 2013 +0000
@@ -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_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))
Home |
Main Index |
Thread Index |
Old Index