Re: 2.6.8-rc4-mm1

From: William Lee Irwin III
Date: Tue Aug 10 2004 - 18:45:02 EST


On Tue, Aug 10, 2004 at 03:45:32PM -0700, William Lee Irwin III wrote:
>> "whole affair" == NULL check in copy_thread(). Except this is a nop, so
>> I think we're just looking for something that survives copy_thread().

On Tue, Aug 10, 2004 at 04:03:57PM -0700, William Lee Irwin III wrote:
> I have an even better fix:
> +struct pt_regs * __init idle_regs(struct pt_regs *regs)
> +{
> + return NULL;
> +}

Okay, this boots and runs here. I suspect if a non-NULL value of
pt_regs can be found that properly initializes things so copy_thread()
doesn't die and/or set up something that crashes on the AP, it can be
plugged in here transparently, the NULL check in copy_thread() removed,
and no core changes will be needed.

If you can advise on how to set up the switch_stack/bspstore/etc. to
this effect so it can be done right away, I'd be much obliged.


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