Re: [2.6 patch] i386: always use 4k stacks

Giridhar Pemmasani
2005-11-14T22:14:36Z

On Mon, 14 Nov 2005 22:33:57 +0000, Alan Cox <alan@lxorguk.ukuu.org.uk> said:

Alan> Switch stack before calling the Windows bits. If we take an IRQ then
Alan> the kernel will itself switch to its own IRQ stack for the IRQ
Alan> handling. I don't think there is much more required.

Shouldn't I have to prevent scheduler from changing the tasks when executing
Windows code? Otherwise, kernel gets wrong current thread information,
which is based on stack pointer. This is the stumbling block for implementing
private stacks.

Thanks,
Giri