diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2010-08-20 13:37:54 +0200 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2010-08-24 00:17:50 -0400 |
commit | 22f637848ee1bdc39ef42a3f9a003621fa7a4fef (patch) | |
tree | 65d7a532589d0a82fbb1cb56a1c92b913b7c1935 | |
parent | e2074bf6ec2956e1d803e62dcb052b7c88c214f0 (diff) | |
download | seabios-22f637848ee1bdc39ef42a3f9a003621fa7a4fef.tar.gz |
Don't try to talk to APIC on 486
It only has one cpuid level, therefore it can't report whether it
has an APIC. It probably hasn't; assume that. Without this,
SeaBIOS would get stuck on qemu -M isapc.
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
-rw-r--r-- | src/smp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -72,7 +72,7 @@ smp_probe(void) ASSERT32FLAT(); u32 eax, ebx, ecx, cpuid_features; cpuid(1, &eax, &ebx, &ecx, &cpuid_features); - if (! (cpuid_features & CPUID_APIC)) { + if (eax < 1 || !(cpuid_features & CPUID_APIC)) { // No apic - only the main cpu is present. dprintf(1, "No apic - only the main cpu is present.\n"); CountCPUs= 1; |