Re: finding out the boot cpu number from userspace

From: Alan Cox
Date: Mon Aug 02 2004 - 14:26:39 EST


On Llu, 2004-08-02 at 19:49, Martin J. Bligh wrote:
> Ah, OK didn't know that ... however, I'm not convinced that panicing is
> really that useful ... what happens if you proceed? IIRC, this is before
> console_init as well, so people won't even see the error. At least it
> should only do that on machines that are borked in such a fashion - 99% of
> machines will work fine, AFAICS.

The APM power off one is actually very common. Another one the ACPI guys
are now fighting that we also hit with SMM is E750x systems, where both
SMM traps and ACPI appear only to work on the boot CPU.

The panic at least made sure that we didnt end up with random mysterious
later problems that would be "fun" to debug.

(Note btw we sometimes care that kexec runs the new boot code on the
right processor because the 16bit entry points for some things also use
SMM traps on certain bioses in order to get a clean entry/stack/etc)


Alan
-
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/