aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86_64/kernel/acpi/wakeup.S36
-rw-r--r--include/asm-x86_64/suspend.h12
2 files changed, 24 insertions, 24 deletions
diff --git a/arch/x86_64/kernel/acpi/wakeup.S b/arch/x86_64/kernel/acpi/wakeup.S
index 6ece70e91a32..17dbeff64eef 100644
--- a/arch/x86_64/kernel/acpi/wakeup.S
+++ b/arch/x86_64/kernel/acpi/wakeup.S
@@ -211,16 +211,16 @@ wakeup_long64:
211 movw %ax, %es 211 movw %ax, %es
212 movw %ax, %fs 212 movw %ax, %fs
213 movw %ax, %gs 213 movw %ax, %gs
214 movq saved_esp, %rsp 214 movq saved_rsp, %rsp
215 215
216 movw $0x0e00 + 'x', %ds:(0xb8018) 216 movw $0x0e00 + 'x', %ds:(0xb8018)
217 movq saved_ebx, %rbx 217 movq saved_rbx, %rbx
218 movq saved_edi, %rdi 218 movq saved_rdi, %rdi
219 movq saved_esi, %rsi 219 movq saved_rsi, %rsi
220 movq saved_ebp, %rbp 220 movq saved_rbp, %rbp
221 221
222 movw $0x0e00 + '!', %ds:(0xb801a) 222 movw $0x0e00 + '!', %ds:(0xb801a)
223 movq saved_eip, %rax 223 movq saved_rip, %rax
224 jmp *%rax 224 jmp *%rax
225 225
226.code32 226.code32
@@ -408,13 +408,13 @@ do_suspend_lowlevel:
408 movq %r15, saved_context_r15(%rip) 408 movq %r15, saved_context_r15(%rip)
409 pushfq ; popq saved_context_eflags(%rip) 409 pushfq ; popq saved_context_eflags(%rip)
410 410
411 movq $.L97, saved_eip(%rip) 411 movq $.L97, saved_rip(%rip)
412 412
413 movq %rsp,saved_esp 413 movq %rsp,saved_rsp
414 movq %rbp,saved_ebp 414 movq %rbp,saved_rbp
415 movq %rbx,saved_ebx 415 movq %rbx,saved_rbx
416 movq %rdi,saved_edi 416 movq %rdi,saved_rdi
417 movq %rsi,saved_esi 417 movq %rsi,saved_rsi
418 418
419 addq $8, %rsp 419 addq $8, %rsp
420 movl $3, %edi 420 movl $3, %edi
@@ -461,12 +461,12 @@ do_suspend_lowlevel:
461 461
462.data 462.data
463ALIGN 463ALIGN
464ENTRY(saved_ebp) .quad 0 464ENTRY(saved_rbp) .quad 0
465ENTRY(saved_esi) .quad 0 465ENTRY(saved_rsi) .quad 0
466ENTRY(saved_edi) .quad 0 466ENTRY(saved_rdi) .quad 0
467ENTRY(saved_ebx) .quad 0 467ENTRY(saved_rbx) .quad 0
468 468
469ENTRY(saved_eip) .quad 0 469ENTRY(saved_rip) .quad 0
470ENTRY(saved_esp) .quad 0 470ENTRY(saved_rsp) .quad 0
471 471
472ENTRY(saved_magic) .quad 0 472ENTRY(saved_magic) .quad 0
diff --git a/include/asm-x86_64/suspend.h b/include/asm-x86_64/suspend.h
index a42306c220d6..9c3f8de90d2d 100644
--- a/include/asm-x86_64/suspend.h
+++ b/include/asm-x86_64/suspend.h
@@ -45,12 +45,12 @@ extern unsigned long saved_context_eflags;
45extern void fix_processor_context(void); 45extern void fix_processor_context(void);
46 46
47#ifdef CONFIG_ACPI_SLEEP 47#ifdef CONFIG_ACPI_SLEEP
48extern unsigned long saved_eip; 48extern unsigned long saved_rip;
49extern unsigned long saved_esp; 49extern unsigned long saved_rsp;
50extern unsigned long saved_ebp; 50extern unsigned long saved_rbp;
51extern unsigned long saved_ebx; 51extern unsigned long saved_rbx;
52extern unsigned long saved_esi; 52extern unsigned long saved_rsi;
53extern unsigned long saved_edi; 53extern unsigned long saved_rdi;
54 54
55/* routines for saving/restoring kernel state */ 55/* routines for saving/restoring kernel state */
56extern int acpi_save_state_mem(void); 56extern int acpi_save_state_mem(void);