Re: Calling current() from interrupt context

From: Jamie Lokier (
Date: Tue Oct 10 2000 - 04:34:26 EST

Linus Torvalds wrote:
> You can also still do the stack pointer plaything by just using
> indirection: and when you context switch you switch the pointer around at
> the base of the per-cpu interrupt stack.

Indirection, la "current = *(stack & ~8191)" might not be a bad idea
in general. As Ralf Baechle noted, having all the task structs at the
same offset isn't good for the cache.

-- Jamie
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sun Oct 15 2000 - 21:00:15 EST