comparison cpudetect.c @ 3700:91f801a94a59

memset is more portable than bzero ("BSD"ism)
author pl
date Mon, 24 Dec 2001 10:35:43 +0000
parents c4ca766a2d05
children 6659db99f200
comparison
equal deleted inserted replaced
3699:5002156efd4f 3700:91f801a94a59
85 unsigned int regs[4]; 85 unsigned int regs[4];
86 unsigned int regs2[4]; 86 unsigned int regs2[4];
87 87
88 caps->isX86=1; 88 caps->isX86=1;
89 89
90 bzero(caps, sizeof(*caps)); 90 memset(caps, 0, sizeof(*caps));
91 if (!has_cpuid()) { 91 if (!has_cpuid()) {
92 printf("CPUID not supported!???\n"); 92 printf("CPUID not supported!???\n");
93 return; 93 return;
94 } 94 }
95 do_cpuid(0x00000000, regs); // get _max_ cpuid level and vendor name 95 do_cpuid(0x00000000, regs); // get _max_ cpuid level and vendor name