From 1abcd8442860ce5ad9f3d1a36bae2398af0f7ac7 Mon Sep 17 00:00:00 2001 From: Kip Macy Date: Thu, 7 Dec 2006 02:04:25 +0000 Subject: [PATCH] fix CID 1672 by initializing variable clock --- sys/sun4v/sun4v/mp_machdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/sun4v/sun4v/mp_machdep.c b/sys/sun4v/sun4v/mp_machdep.c index c6d87a13d920..01756d635de2 100644 --- a/sys/sun4v/sun4v/mp_machdep.c +++ b/sys/sun4v/sun4v/mp_machdep.c @@ -287,7 +287,7 @@ cpu_mp_start(void) root = OF_peer(0); csa = &cpu_start_args; - cpuid = bp_skipped = 0; + clock = cpuid = bp_skipped = 0; for (child = OF_child(root); child != 0; child = OF_peer(child)) { if (OF_getprop(child, "device_type", buf, sizeof(buf)) <= 0 || strcmp(buf, "cpu") != 0)