diff options
author | Mike Larkin <mlarkin@cvs.openbsd.org> | 2013-08-24 23:45:32 +0000 |
---|---|---|
committer | Mike Larkin <mlarkin@cvs.openbsd.org> | 2013-08-24 23:45:32 +0000 |
commit | 3c52e78f95bb3652e2d76d7e9f11be135268b136 (patch) | |
tree | cc84494ac1cfb90422a4ecadf63cc9b407047a06 /sys/arch | |
parent | 2a6b855f605f4c50b1fa03525bb56b650620e9ab (diff) |
fix use of uninitialized variables (used only in a DEBUG printf)
found by Maxime Villard
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/amd64/amd64/identcpu.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/amd64/amd64/identcpu.c b/sys/arch/amd64/amd64/identcpu.c index 2c7ea64838e..99c2028fc98 100644 --- a/sys/arch/amd64/amd64/identcpu.c +++ b/sys/arch/amd64/amd64/identcpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: identcpu.c,v 1.49 2013/07/30 20:42:34 kettenis Exp $ */ +/* $OpenBSD: identcpu.c,v 1.50 2013/08/24 23:45:31 mlarkin Exp $ */ /* $NetBSD: identcpu.c,v 1.1 2003/04/26 18:39:28 fvdl Exp $ */ /* @@ -626,9 +626,9 @@ cpu_topology(struct cpu_info *ci) { #ifndef SMALL_KERNEL u_int32_t eax, ebx, ecx, edx; - u_int32_t apicid, max_apicid, max_coreid; - u_int32_t smt_bits, core_bits, pkg_bits; - u_int32_t smt_mask, core_mask, pkg_mask; + u_int32_t apicid, max_apicid = 0, max_coreid = 0; + u_int32_t smt_bits = 0, core_bits, pkg_bits = 0; + u_int32_t smt_mask = 0, core_mask, pkg_mask = 0; /* We need at least apicid at CPUID 1 */ CPUID(0, eax, ebx, ecx, edx); |