diff options
author | Andi Kleen <ak@suse.de> | 2005-09-12 16:49:24 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-12 17:50:57 (GMT) |
commit | a0d58c9741e4ef42f5fbdfb2a6b86f03c6e9092f (patch) | |
tree | aa51f2bb353ba48670ecb82a3137730c5021ccb6 /include | |
parent | 1209140c3c70aaa32d1a0462d79557f2a44a4ef8 (diff) | |
download | linux-a0d58c9741e4ef42f5fbdfb2a6b86f03c6e9092f.tar.xz |
[PATCH] x86-64: Set the stack pointer correctly in init_thread and init_tss
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-x86_64/processor.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/asm-x86_64/processor.h b/include/asm-x86_64/processor.h index c6461c1..03837d3 100644 --- a/include/asm-x86_64/processor.h +++ b/include/asm-x86_64/processor.h @@ -254,7 +254,13 @@ struct thread_struct { u64 tls_array[GDT_ENTRY_TLS_ENTRIES]; } __attribute__((aligned(16))); -#define INIT_THREAD {} +#define INIT_THREAD { \ + .rsp0 = (unsigned long)&init_stack + sizeof(init_stack) \ +} + +#define INIT_TSS { \ + .rsp0 = (unsigned long)&init_stack + sizeof(init_stack) \ +} #define INIT_MMAP \ { &init_mm, 0, 0, NULL, PAGE_SHARED, VM_READ | VM_WRITE | VM_EXEC, 1, NULL, NULL } |