diff options
author | Andi Kleen <ak@suse.de> | 2005-09-12 18:49:24 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-12 10:50:57 -0700 |
commit | a0d58c9741e4ef42f5fbdfb2a6b86f03c6e9092f (patch) | |
tree | aa51f2bb353ba48670ecb82a3137730c5021ccb6 /include/asm-x86_64 | |
parent | 1209140c3c70aaa32d1a0462d79557f2a44a4ef8 (diff) | |
download | blackbird-op-linux-a0d58c9741e4ef42f5fbdfb2a6b86f03c6e9092f.tar.gz blackbird-op-linux-a0d58c9741e4ef42f5fbdfb2a6b86f03c6e9092f.zip |
[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/asm-x86_64')
-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 c6461c16edbf..03837d34fba0 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 } |