Messages in this thread |  | | Date | Mon, 27 Nov 2000 00:38:44 +0100 | From | Andrea Arcangeli <> | Subject | Re: kernel_thread bogosity |
| |
On Sun, Nov 26, 2000 at 11:29:32PM +0100, Pavel Machek wrote: > Is this different on x86-64 in long mode?
Yes, in 64bit mode ss:rsp is restore unconditionally. In compatibility and legacy modes it's restored only if the CPL changes.
kernel never runs in compatibility mode (and userspace never runs iret) so in kernel_thread we know x86-64 always restores ss:rsp from the stack.
You should find this as a familiar behaviour as you just tried to pass a stack via kernel_thread in your latest patch against cvs :).
Andrea - 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/
|  |