Re: 2.6.x BUGs at boot time (APIC related)

From: Chuck Ebbert
Date: Thu Dec 23 2004 - 12:06:51 EST


vda wrote:

> --- linux-2.6.10-rc3.src/arch/i386/kernel/apic.c.old Mon Dec 20 14:13:59 2004
> +++ linux-2.6.10-rc3.src/arch/i386/kernel/apic.c Thu Dec 23 08:54:13 2004
> @@ -1250,8 +1250,10 @@
> */
> int __init APIC_init_uniprocessor (void)
> {
> - if (enable_local_apic < 0)
> + if (enable_local_apic < 0) {
> clear_bit(X86_FEATURE_APIC, boot_cpu_data.x86_capability);
> + return -1;
> + }
>
> if (!smp_found_config && !cpu_has_apic)
> return -1;


Mikael Pettersson wrote:

> The early return just hides the real bug, whatever it is.


How about this:

- if (!smp_found_config && !cpu_has_apic)
+ if (!smp_found_config || !cpu_has_apic)

--
Please take it as a sign of my infinite respect for you,
that I insist on you doing all the work.
-- Rusty Russell
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/