aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/acpi/sleep.c
diff options
context:
space:
mode:
authorGlauber Costa <gcosta@redhat.com>2008-05-27 21:22:54 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-08 06:48:14 -0400
commit9cf4f298e29abba25c16679fe7be70898223167e (patch)
tree009af01f7c8001fb86fcfa25226d0c78248b83c9 /arch/x86/kernel/acpi/sleep.c
parenta7bf0bd5e6af7fe69342dabf2a3b721f0163469a (diff)
x86: use stack_start in x86_64
call x86_64's init_rsp stack_start, just as i386 does. Put a zeroed stack segment for consistency. With this, we can eliminate one ugly ifdef in smpboot.c. Signed-off-by: Glauber Costa <gcosta@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/acpi/sleep.c')
-rw-r--r--arch/x86/kernel/acpi/sleep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/acpi/sleep.c b/arch/x86/kernel/acpi/sleep.c
index 36af01f029ed..a81f468ab410 100644
--- a/arch/x86/kernel/acpi/sleep.c
+++ b/arch/x86/kernel/acpi/sleep.c
@@ -86,7 +86,7 @@ int acpi_save_state_mem(void)
86 saved_magic = 0x12345678; 86 saved_magic = 0x12345678;
87#else /* CONFIG_64BIT */ 87#else /* CONFIG_64BIT */
88 header->trampoline_segment = setup_trampoline() >> 4; 88 header->trampoline_segment = setup_trampoline() >> 4;
89 init_rsp = (unsigned long)temp_stack + 4096; 89 stack_start.sp = temp_stack + 4096;
90 initial_code = (unsigned long)wakeup_long64; 90 initial_code = (unsigned long)wakeup_long64;
91 saved_magic = 0x123456789abcdef0; 91 saved_magic = 0x123456789abcdef0;
92#endif /* CONFIG_64BIT */ 92#endif /* CONFIG_64BIT */