projects
/
profile
/
ivi
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
adcbc88
)
cpuid: Init flags structures
author
Erwan Velu
<erwanaliasr1@gmail.com>
Mon, 21 Mar 2011 20:22:12 +0000
(21:22 +0100)
committer
Erwan Velu
<erwanaliasr1@gmail.com>
Mon, 21 Mar 2011 20:22:12 +0000
(21:22 +0100)
Let's zeroify it at init time.
com32/gpllib/cpuid.c
patch
|
blob
|
history
diff --git
a/com32/gpllib/cpuid.c
b/com32/gpllib/cpuid.c
index
2d5b5ce
..
fb9323b
100644
(file)
--- a/
com32/gpllib/cpuid.c
+++ b/
com32/gpllib/cpuid.c
@@
-446,6
+446,7
@@
void detect_cpu(s_cpu * cpu)
memset(&c.x86_capability, 0, sizeof(c.x86_capability));
memset(&c.x86_vendor_id, 0, sizeof(c.x86_vendor_id));
memset(&c.x86_model_id, 0, sizeof(c.x86_model_id));
+ memset(&cpu->flags, 0, sizeof(s_cpu_flags));
if (!have_cpuid_p())
return;