Re: the creation of boot_cpu_init() is wrong and accessing uninitialised data

From: Keith Owens
Date: Tue Jun 27 2006 - 08:58:15 EST


Andrew Morton (on Mon, 26 Jun 2006 22:03:37 -0700) wrote:
>It's a bit odd - I think non-zero BSPs happen a bit more often than
>only-on-voyager.

AFAICR, the BSP is supposed to be logical cpu 0 on all architectures.
Most architectures assign logical cpu 0 to the BSP, even if the BSP has
a non-zero hard_smp_processor_id. ia64 even has this

int __cpu_disable(void)
{
int cpu = smp_processor_id();

/*
* dont permit boot processor for now
*/
if (cpu == 0 && !bsp_remove_ok) {

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