man, I gotta quit making stupid mistakes. this dumb cpuid commit is really screwing the pooch.

Should be another fix for #1018


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20158 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Travis Geiselbrecht
2007-02-18 20:54:02 +00:00
parent c2d83d3d4e
commit 774565638e
+2 -2
View File
@@ -355,12 +355,12 @@ static int detect_cpu(kernel_args *ka, int curr_cpu)
// figure out what vendor we have here
for(i=0; i<VENDOR_NUM; i++) {
if(!strcmp(vendor_str, vendor_info[i].ident_string[0])) {
if(vendor_info[i].ident_string[0] && !strcmp(vendor_str, vendor_info[i].ident_string[0])) {
cpu->arch.vendor = i;
cpu->arch.vendor_name = vendor_info[i].vendor;
break;
}
if(!strcmp(vendor_str, vendor_info[i].ident_string[1])) {
if(vendor_info[i].ident_string[1] && !strcmp(vendor_str, vendor_info[i].ident_string[1])) {
cpu->arch.vendor = i;
cpu->arch.vendor_name = vendor_info[i].vendor;
break;