Re: Third arg to switch_to()

From: Kenn Humborg (kenn@linux.ie)
Date: Mon Oct 30 2000 - 18:25:10 EST


On Mon, Oct 30, 2000 at 07:15:58PM +0000, I wrote:
>
> Can anyone point me to an explanation of the third arg to
> switch_to(prev, next, last)?
>
> It appeared in 2.2.8.
>
> What exactly is supposed to be written to it?

Mea culpa...

Further digging revealed that it's for returning prev in the
new task, to deal with the fact that the stack has changed
so local variables in schedule() don't exist anymore.

Later,
Kenn

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Oct 31 2000 - 21:00:28 EST