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:
@@ -355,12 +355,12 @@ static int detect_cpu(kernel_args *ka, int curr_cpu)
|
|||||||
// figure out what vendor we have here
|
// figure out what vendor we have here
|
||||||
|
|
||||||
for(i=0; i<VENDOR_NUM; i++) {
|
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 = i;
|
||||||
cpu->arch.vendor_name = vendor_info[i].vendor;
|
cpu->arch.vendor_name = vendor_info[i].vendor;
|
||||||
break;
|
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 = i;
|
||||||
cpu->arch.vendor_name = vendor_info[i].vendor;
|
cpu->arch.vendor_name = vendor_info[i].vendor;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user