From 774565638ef604bc400c1cc46180c17b28c2317a Mon Sep 17 00:00:00 2001 From: Travis Geiselbrecht Date: Sun, 18 Feb 2007 20:54:02 +0000 Subject: [PATCH] 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 --- src/system/kernel/arch/x86/arch_cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/kernel/arch/x86/arch_cpu.c b/src/system/kernel/arch/x86/arch_cpu.c index 5675cc5fdf..b0475e8697 100644 --- a/src/system/kernel/arch/x86/arch_cpu.c +++ b/src/system/kernel/arch/x86/arch_cpu.c @@ -355,12 +355,12 @@ static int detect_cpu(kernel_args *ka, int curr_cpu) // figure out what vendor we have here for(i=0; iarch.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;