2005-04-16 18:20:36 -04:00
|
|
|
.text
|
|
|
|
#include <linux/linkage.h>
|
|
|
|
#include <asm/segment.h>
|
2007-05-02 13:27:07 -04:00
|
|
|
#include <asm/pgtable.h>
|
2005-04-16 18:20:36 -04:00
|
|
|
#include <asm/page.h>
|
|
|
|
#include <asm/msr.h>
|
2007-10-23 16:37:24 -04:00
|
|
|
#include <asm/asm-offsets.h>
|
2005-04-16 18:20:36 -04:00
|
|
|
|
|
|
|
# Copyright 2003 Pavel Machek <pavel@suse.cz>, distribute under GPLv2
|
|
|
|
#
|
|
|
|
# wakeup_code runs in real mode, and at unknown address (determined at run-time).
|
|
|
|
# Therefore it must only use relative jumps/calls.
|
|
|
|
#
|
|
|
|
# Do we need to deal with A20? It is okay: ACPI specs says A20 must be enabled
|
|
|
|
#
|
|
|
|
# If physical address of wakeup_code is 0x12345, BIOS should call us with
|
|
|
|
# cs = 0x1234, eip = 0x05
|
|
|
|
#
|
|
|
|
|
2007-07-19 04:47:41 -04:00
|
|
|
#define BEEP \
|
|
|
|
inb $97, %al; \
|
|
|
|
outb %al, $0x80; \
|
|
|
|
movb $3, %al; \
|
|
|
|
outb %al, $97; \
|
|
|
|
outb %al, $0x80; \
|
|
|
|
movb $-74, %al; \
|
|
|
|
outb %al, $67; \
|
|
|
|
outb %al, $0x80; \
|
|
|
|
movb $-119, %al; \
|
|
|
|
outb %al, $66; \
|
|
|
|
outb %al, $0x80; \
|
|
|
|
movb $15, %al; \
|
|
|
|
outb %al, $66;
|
|
|
|
|
2005-04-16 18:20:36 -04:00
|
|
|
|
|
|
|
ALIGN
|
|
|
|
.align 16
|
|
|
|
ENTRY(wakeup_start)
|
|
|
|
wakeup_code:
|
|
|
|
wakeup_code_start = .
|
|
|
|
.code16
|
|
|
|
|
|
|
|
# Running in *copy* of this code, somewhere in low 1MB.
|
|
|
|
|
|
|
|
cli
|
|
|
|
cld
|
|
|
|
# setup data segment
|
|
|
|
movw %cs, %ax
|
2007-05-02 13:27:07 -04:00
|
|
|
movw %ax, %ds # Make ds:0 point to wakeup_start
|
2005-04-16 18:20:36 -04:00
|
|
|
movw %ax, %ss
|
2007-07-19 04:47:41 -04:00
|
|
|
|
|
|
|
# Data segment must be set up before we can see whether to beep.
|
2007-07-19 04:47:41 -04:00
|
|
|
testl $4, realmode_flags - wakeup_code
|
2007-07-19 04:47:41 -04:00
|
|
|
jz 1f
|
|
|
|
BEEP
|
|
|
|
1:
|
|
|
|
|
2007-05-02 13:27:07 -04:00
|
|
|
# Private stack is needed for ASUS board
|
|
|
|
mov $(wakeup_stack - wakeup_code), %sp
|
2005-04-16 18:20:36 -04:00
|
|
|
|
2007-05-02 13:27:07 -04:00
|
|
|
pushl $0 # Kill any dangerous flags
|
2005-04-16 18:20:36 -04:00
|
|
|
popfl
|
|
|
|
|
|
|
|
movl real_magic - wakeup_code, %eax
|
|
|
|
cmpl $0x12345678, %eax
|
|
|
|
jne bogus_real_magic
|
|
|
|
|
2007-07-19 04:47:41 -04:00
|
|
|
testl $1, realmode_flags - wakeup_code
|
2005-04-16 18:20:36 -04:00
|
|
|
jz 1f
|
|
|
|
lcall $0xc000,$3
|
|
|
|
movw %cs, %ax
|
2007-05-02 13:27:07 -04:00
|
|
|
movw %ax, %ds # Bios might have played with that
|
2005-04-16 18:20:36 -04:00
|
|
|
movw %ax, %ss
|
|
|
|
1:
|
|
|
|
|
2007-07-19 04:47:41 -04:00
|
|
|
testl $2, realmode_flags - wakeup_code
|
2005-04-16 18:20:36 -04:00
|
|
|
jz 1f
|
|
|
|
mov video_mode - wakeup_code, %ax
|
2007-09-13 17:16:37 -04:00
|
|
|
call mode_set
|
2005-04-16 18:20:36 -04:00
|
|
|
1:
|
|
|
|
|
2007-05-02 13:27:07 -04:00
|
|
|
mov %ds, %ax # Find 32bit wakeup_code addr
|
|
|
|
movzx %ax, %esi # (Convert %ds:gdt to a liner ptr)
|
|
|
|
shll $4, %esi
|
|
|
|
# Fix up the vectors
|
|
|
|
addl %esi, wakeup_32_vector - wakeup_code
|
|
|
|
addl %esi, wakeup_long64_vector - wakeup_code
|
|
|
|
addl %esi, gdt_48a + 2 - wakeup_code # Fixup the gdt pointer
|
|
|
|
|
|
|
|
lidtl %ds:idt_48a - wakeup_code
|
2005-06-25 17:55:09 -04:00
|
|
|
lgdtl %ds:gdt_48a - wakeup_code # load gdt with whatever is
|
2005-04-16 18:20:36 -04:00
|
|
|
# appropriate
|
|
|
|
|
|
|
|
movl $1, %eax # protected mode (PE) bit
|
|
|
|
lmsw %ax # This is it!
|
|
|
|
jmp 1f
|
|
|
|
1:
|
|
|
|
|
2007-05-02 13:27:07 -04:00
|
|
|
ljmpl *(wakeup_32_vector - wakeup_code)
|
|
|
|
|
|
|
|
.balign 4
|
|
|
|
wakeup_32_vector:
|
2007-05-02 13:27:07 -04:00
|
|
|
.long wakeup_32 - wakeup_code
|
2007-05-02 13:27:07 -04:00
|
|
|
.word __KERNEL32_CS, 0
|
2005-04-16 18:20:36 -04:00
|
|
|
|
|
|
|
.code32
|
|
|
|
wakeup_32:
|
|
|
|
# Running in this code, but at low address; paging is not yet turned on.
|
|
|
|
|
2007-05-02 13:27:07 -04:00
|
|
|
movl $__KERNEL_DS, %eax
|
|
|
|
movl %eax, %ds
|
2005-04-16 18:20:36 -04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Prepare for entering 64bits mode
|
|
|
|
*/
|
|
|
|
|
2007-05-02 13:27:07 -04:00
|
|
|
/* Enable PAE */
|
2005-04-16 18:20:36 -04:00
|
|
|
xorl %eax, %eax
|
|
|
|
btsl $5, %eax
|
|
|
|
movl %eax, %cr4
|
|
|
|
|
|
|
|
/* Setup early boot stage 4 level pagetables */
|
2007-05-02 13:27:07 -04:00
|
|
|
leal (wakeup_level4_pgt - wakeup_code)(%esi), %eax
|
2005-04-16 18:20:36 -04:00
|
|
|
movl %eax, %cr3
|
|
|
|
|
2007-05-02 13:27:08 -04:00
|
|
|
/* Check if nx is implemented */
|
|
|
|
movl $0x80000001, %eax
|
|
|
|
cpuid
|
|
|
|
movl %edx,%edi
|
|
|
|
|
2005-04-16 18:20:36 -04:00
|
|
|
/* Enable Long Mode */
|
2007-05-02 13:27:07 -04:00
|
|
|
xorl %eax, %eax
|
2005-04-16 18:20:36 -04:00
|
|
|
btsl $_EFER_LME, %eax
|
|
|
|
|
2007-05-02 13:27:07 -04:00
|
|
|
/* No Execute supported? */
|
2005-04-16 18:20:36 -04:00
|
|
|
btl $20,%edi
|
|
|
|
jnc 1f
|
|
|
|
btsl $_EFER_NX, %eax
|
|
|
|
|
|
|
|
/* Make changes effective */
|
2007-05-02 13:27:07 -04:00
|
|
|
1: movl $MSR_EFER, %ecx
|
|
|
|
xorl %edx, %edx
|
2005-04-16 18:20:36 -04:00
|
|
|
wrmsr
|
|
|
|
|
|
|
|
xorl %eax, %eax
|
|
|
|
btsl $31, %eax /* Enable paging and in turn activate Long Mode */
|
|
|
|
btsl $0, %eax /* Enable protected mode */
|
|
|
|
|
|
|
|
/* Make changes effective */
|
|
|
|
movl %eax, %cr0
|
2007-05-02 13:27:07 -04:00
|
|
|
|
2005-04-16 18:20:36 -04:00
|
|
|
/* At this point:
|
|
|
|
CR4.PAE must be 1
|
|
|
|
CS.L must be 0
|
|
|
|
CR3 must point to PML4
|
|
|
|
Next instruction must be a branch
|
|
|
|
This must be on identity-mapped page
|
|
|
|
*/
|
|
|
|
/*
|
|
|
|
* At this point we're in long mode but in 32bit compatibility mode
|
|
|
|
* with EFER.LME = 1, CS.L = 0, CS.D = 1 (and in turn
|
|
|
|
* EFER.LMA = 1). Now we want to jump in 64bit mode, to do that we load
|
|
|
|
* the new gdt/idt that has __KERNEL_CS with CS.L = 1.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Finally jump in 64bit mode */
|
2007-05-02 13:27:07 -04:00
|
|
|
ljmp *(wakeup_long64_vector - wakeup_code)(%esi)
|
2005-04-16 18:20:36 -04:00
|
|
|
|
2007-05-02 13:27:07 -04:00
|
|
|
.balign 4
|
|
|
|
wakeup_long64_vector:
|
2007-05-02 13:27:07 -04:00
|
|
|
.long wakeup_long64 - wakeup_code
|
2007-05-02 13:27:07 -04:00
|
|
|
.word __KERNEL_CS, 0
|
2005-04-16 18:20:36 -04:00
|
|
|
|
|
|
|
.code64
|
|
|
|
|
2007-05-02 13:27:07 -04:00
|
|
|
/* Hooray, we are in Long 64-bit mode (but still running in
|
|
|
|
* low memory)
|
|
|
|
*/
|
2005-04-16 18:20:36 -04:00
|
|
|
wakeup_long64:
|
|
|
|
/*
|
|
|
|
* We must switch to a new descriptor in kernel space for the GDT
|
|
|
|
* because soon the kernel won't have access anymore to the userspace
|
|
|
|
* addresses where we're currently running on. We have to do that here
|
|
|
|
* because in 32bit we couldn't load a 64bit linear address.
|
|
|
|
*/
|
2007-05-02 13:27:07 -04:00
|
|
|
lgdt cpu_gdt_descr
|
2005-04-16 18:20:36 -04:00
|
|
|
|
2007-05-02 13:27:07 -04:00
|
|
|
movq saved_magic, %rax
|
|
|
|
movq $0x123456789abcdef0, %rdx
|
|
|
|
cmpq %rdx, %rax
|
|
|
|
jne bogus_64_magic
|
|
|
|
|
2005-04-16 18:20:36 -04:00
|
|
|
nop
|
|
|
|
nop
|
|
|
|
movw $__KERNEL_DS, %ax
|
|
|
|
movw %ax, %ss
|
|
|
|
movw %ax, %ds
|
|
|
|
movw %ax, %es
|
|
|
|
movw %ax, %fs
|
|
|
|
movw %ax, %gs
|
2007-05-02 13:27:07 -04:00
|
|
|
movq saved_rsp, %rsp
|
2005-04-16 18:20:36 -04:00
|
|
|
|
2007-05-02 13:27:07 -04:00
|
|
|
movq saved_rbx, %rbx
|
|
|
|
movq saved_rdi, %rdi
|
|
|
|
movq saved_rsi, %rsi
|
|
|
|
movq saved_rbp, %rbp
|
2005-04-16 18:20:36 -04:00
|
|
|
|
2007-05-02 13:27:07 -04:00
|
|
|
movq saved_rip, %rax
|
2005-04-16 18:20:36 -04:00
|
|
|
jmp *%rax
|
|
|
|
|
|
|
|
.code32
|
|
|
|
|
|
|
|
.align 64
|
|
|
|
gdta:
|
2007-05-02 13:27:07 -04:00
|
|
|
/* Its good to keep gdt in sync with one in trampoline.S */
|
2005-04-16 18:20:36 -04:00
|
|
|
.word 0, 0, 0, 0 # dummy
|
2007-05-02 13:27:07 -04:00
|
|
|
/* ??? Why I need the accessed bit set in order for this to work? */
|
|
|
|
.quad 0x00cf9b000000ffff # __KERNEL32_CS
|
|
|
|
.quad 0x00af9b000000ffff # __KERNEL_CS
|
|
|
|
.quad 0x00cf93000000ffff # __KERNEL_DS
|
2005-04-16 18:20:36 -04:00
|
|
|
|
|
|
|
idt_48a:
|
|
|
|
.word 0 # idt limit = 0
|
|
|
|
.word 0, 0 # idt base = 0L
|
|
|
|
|
|
|
|
gdt_48a:
|
2007-05-02 13:27:07 -04:00
|
|
|
.word 0x800 # gdt limit=2048,
|
2005-04-16 18:20:36 -04:00
|
|
|
# 256 GDT entries
|
2007-05-02 13:27:07 -04:00
|
|
|
.long gdta - wakeup_code # gdt base (relocated in later)
|
2005-04-16 18:20:36 -04:00
|
|
|
|
|
|
|
real_magic: .quad 0
|
|
|
|
video_mode: .quad 0
|
2007-07-19 04:47:41 -04:00
|
|
|
realmode_flags: .quad 0
|
2005-04-16 18:20:36 -04:00
|
|
|
|
2007-05-02 13:27:07 -04:00
|
|
|
.code16
|
2005-04-16 18:20:36 -04:00
|
|
|
bogus_real_magic:
|
|
|
|
jmp bogus_real_magic
|
|
|
|
|
2007-05-02 13:27:07 -04:00
|
|
|
.code64
|
|
|
|
bogus_64_magic:
|
|
|
|
jmp bogus_64_magic
|
2005-04-16 18:20:36 -04:00
|
|
|
|
|
|
|
/* This code uses an extended set of video mode numbers. These include:
|
|
|
|
* Aliases for standard modes
|
|
|
|
* NORMAL_VGA (-1)
|
|
|
|
* EXTENDED_VGA (-2)
|
|
|
|
* ASK_VGA (-3)
|
|
|
|
* Video modes numbered by menu position -- NOT RECOMMENDED because of lack
|
|
|
|
* of compatibility when extending the table. These are between 0x00 and 0xff.
|
|
|
|
*/
|
|
|
|
#define VIDEO_FIRST_MENU 0x0000
|
|
|
|
|
|
|
|
/* Standard BIOS video modes (BIOS number + 0x0100) */
|
|
|
|
#define VIDEO_FIRST_BIOS 0x0100
|
|
|
|
|
|
|
|
/* VESA BIOS video modes (VESA number + 0x0200) */
|
|
|
|
#define VIDEO_FIRST_VESA 0x0200
|
|
|
|
|
|
|
|
/* Video7 special modes (BIOS number + 0x0900) */
|
|
|
|
#define VIDEO_FIRST_V7 0x0900
|
|
|
|
|
|
|
|
# Setting of user mode (AX=mode ID) => CF=success
|
2007-09-13 17:16:37 -04:00
|
|
|
|
|
|
|
# For now, we only handle VESA modes (0x0200..0x03ff). To handle other
|
|
|
|
# modes, we should probably compile in the video code from the boot
|
|
|
|
# directory.
|
2007-05-02 13:27:07 -04:00
|
|
|
.code16
|
2007-09-13 17:16:37 -04:00
|
|
|
mode_set:
|
2005-04-16 18:20:36 -04:00
|
|
|
movw %ax, %bx
|
2007-09-13 17:16:37 -04:00
|
|
|
subb $VIDEO_FIRST_VESA>>8, %bh
|
|
|
|
cmpb $2, %bh
|
|
|
|
jb check_vesa
|
2005-04-16 18:20:36 -04:00
|
|
|
|
2007-09-13 17:16:37 -04:00
|
|
|
setbad:
|
|
|
|
clc
|
2005-04-16 18:20:36 -04:00
|
|
|
ret
|
|
|
|
|
2007-09-13 17:16:37 -04:00
|
|
|
check_vesa:
|
2005-04-16 18:20:36 -04:00
|
|
|
orw $0x4000, %bx # Use linear frame buffer
|
|
|
|
movw $0x4f02, %ax # VESA BIOS mode set call
|
|
|
|
int $0x10
|
|
|
|
cmpw $0x004f, %ax # AL=4f if implemented
|
2007-09-13 17:16:37 -04:00
|
|
|
jnz setbad # AH=0 if OK
|
2005-04-16 18:20:36 -04:00
|
|
|
|
|
|
|
stc
|
|
|
|
ret
|
|
|
|
|
|
|
|
wakeup_stack_begin: # Stack grows down
|
|
|
|
|
|
|
|
.org 0xff0
|
|
|
|
wakeup_stack: # Just below end of page
|
|
|
|
|
2007-05-02 13:27:07 -04:00
|
|
|
.org 0x1000
|
|
|
|
ENTRY(wakeup_level4_pgt)
|
|
|
|
.quad level3_ident_pgt - __START_KERNEL_map + _KERNPG_TABLE
|
|
|
|
.fill 510,8,0
|
|
|
|
/* (2^48-(2*1024*1024*1024))/(2^39) = 511 */
|
|
|
|
.quad level3_kernel_pgt - __START_KERNEL_map + _KERNPG_TABLE
|
|
|
|
|
2005-04-16 18:20:36 -04:00
|
|
|
ENTRY(wakeup_end)
|
|
|
|
|
|
|
|
##
|
|
|
|
# acpi_copy_wakeup_routine
|
|
|
|
#
|
|
|
|
# Copy the above routine to low memory.
|
|
|
|
#
|
|
|
|
# Parameters:
|
|
|
|
# %rdi: place to copy wakeup routine to
|
|
|
|
#
|
|
|
|
# Returned address is location of code in low memory (past data and stack)
|
|
|
|
#
|
[PATCH] x86-64: Get rid of dead code in suspend resume
o Get rid of dead code in wakeup.S
o We never restore from saved_gdt, saved_idt, saved_ltd, saved_tss, saved_cr3,
saved_cr4, saved_cr0, real_save_gdt, saved_efer, saved_efer2. Get rid
of of associated code.
o Get rid of bogus_magic, bogus_31_magic and bogus_magic2. No longer being
used.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Vivek Goyal <vgoyal@in.ibm.com>
Signed-off-by: Andi Kleen <ak@suse.de>
2007-05-02 13:27:07 -04:00
|
|
|
.code64
|
2005-04-16 18:20:36 -04:00
|
|
|
ENTRY(acpi_copy_wakeup_routine)
|
|
|
|
pushq %rax
|
|
|
|
pushq %rdx
|
|
|
|
|
|
|
|
movl saved_video_mode, %edx
|
|
|
|
movl %edx, video_mode - wakeup_start (,%rdi)
|
2007-07-19 04:47:41 -04:00
|
|
|
movl acpi_realmode_flags, %edx
|
|
|
|
movl %edx, realmode_flags - wakeup_start (,%rdi)
|
2005-04-16 18:20:36 -04:00
|
|
|
movq $0x12345678, real_magic - wakeup_start (,%rdi)
|
|
|
|
movq $0x123456789abcdef0, %rdx
|
|
|
|
movq %rdx, saved_magic
|
|
|
|
|
2007-05-02 13:27:07 -04:00
|
|
|
movq saved_magic, %rax
|
|
|
|
movq $0x123456789abcdef0, %rdx
|
|
|
|
cmpq %rdx, %rax
|
|
|
|
jne bogus_64_magic
|
2005-04-16 18:20:36 -04:00
|
|
|
|
|
|
|
# restore the regs we used
|
|
|
|
popq %rdx
|
|
|
|
popq %rax
|
|
|
|
ENTRY(do_suspend_lowlevel_s4bios)
|
|
|
|
ret
|
|
|
|
|
|
|
|
.align 2
|
|
|
|
.p2align 4,,15
|
|
|
|
.globl do_suspend_lowlevel
|
|
|
|
.type do_suspend_lowlevel,@function
|
|
|
|
do_suspend_lowlevel:
|
|
|
|
.LFB5:
|
|
|
|
subq $8, %rsp
|
|
|
|
xorl %eax, %eax
|
|
|
|
call save_processor_state
|
|
|
|
|
2007-10-23 16:37:24 -04:00
|
|
|
movq $saved_context, %rax
|
2008-01-30 07:30:56 -05:00
|
|
|
movq %rsp, pt_regs_sp(%rax)
|
|
|
|
movq %rbp, pt_regs_bp(%rax)
|
|
|
|
movq %rsi, pt_regs_si(%rax)
|
|
|
|
movq %rdi, pt_regs_di(%rax)
|
|
|
|
movq %rbx, pt_regs_bx(%rax)
|
|
|
|
movq %rcx, pt_regs_cx(%rax)
|
|
|
|
movq %rdx, pt_regs_dx(%rax)
|
2007-10-23 16:37:24 -04:00
|
|
|
movq %r8, pt_regs_r8(%rax)
|
|
|
|
movq %r9, pt_regs_r9(%rax)
|
|
|
|
movq %r10, pt_regs_r10(%rax)
|
|
|
|
movq %r11, pt_regs_r11(%rax)
|
|
|
|
movq %r12, pt_regs_r12(%rax)
|
|
|
|
movq %r13, pt_regs_r13(%rax)
|
|
|
|
movq %r14, pt_regs_r14(%rax)
|
|
|
|
movq %r15, pt_regs_r15(%rax)
|
|
|
|
pushfq
|
2008-01-30 07:30:56 -05:00
|
|
|
popq pt_regs_flags(%rax)
|
2005-04-16 18:20:36 -04:00
|
|
|
|
2007-05-02 13:27:07 -04:00
|
|
|
movq $.L97, saved_rip(%rip)
|
2005-04-16 18:20:36 -04:00
|
|
|
|
2007-10-23 16:37:24 -04:00
|
|
|
movq %rsp, saved_rsp
|
|
|
|
movq %rbp, saved_rbp
|
|
|
|
movq %rbx, saved_rbx
|
|
|
|
movq %rdi, saved_rdi
|
|
|
|
movq %rsi, saved_rsi
|
2005-04-16 18:20:36 -04:00
|
|
|
|
|
|
|
addq $8, %rsp
|
|
|
|
movl $3, %edi
|
|
|
|
xorl %eax, %eax
|
|
|
|
jmp acpi_enter_sleep_state
|
|
|
|
.L97:
|
|
|
|
.p2align 4,,7
|
|
|
|
.L99:
|
|
|
|
.align 4
|
|
|
|
movl $24, %eax
|
2007-10-23 16:37:24 -04:00
|
|
|
movw %ax, %ds
|
|
|
|
|
|
|
|
/* We don't restore %rax, it must be 0 anyway */
|
|
|
|
movq $saved_context, %rax
|
|
|
|
movq saved_context_cr4(%rax), %rbx
|
|
|
|
movq %rbx, %cr4
|
|
|
|
movq saved_context_cr3(%rax), %rbx
|
|
|
|
movq %rbx, %cr3
|
|
|
|
movq saved_context_cr2(%rax), %rbx
|
|
|
|
movq %rbx, %cr2
|
|
|
|
movq saved_context_cr0(%rax), %rbx
|
|
|
|
movq %rbx, %cr0
|
2008-01-30 07:30:56 -05:00
|
|
|
pushq pt_regs_flags(%rax)
|
2007-10-23 16:37:24 -04:00
|
|
|
popfq
|
2008-01-30 07:30:56 -05:00
|
|
|
movq pt_regs_sp(%rax), %rsp
|
|
|
|
movq pt_regs_bp(%rax), %rbp
|
|
|
|
movq pt_regs_si(%rax), %rsi
|
|
|
|
movq pt_regs_di(%rax), %rdi
|
|
|
|
movq pt_regs_bx(%rax), %rbx
|
|
|
|
movq pt_regs_cx(%rax), %rcx
|
|
|
|
movq pt_regs_dx(%rax), %rdx
|
2007-10-23 16:37:24 -04:00
|
|
|
movq pt_regs_r8(%rax), %r8
|
|
|
|
movq pt_regs_r9(%rax), %r9
|
|
|
|
movq pt_regs_r10(%rax), %r10
|
|
|
|
movq pt_regs_r11(%rax), %r11
|
|
|
|
movq pt_regs_r12(%rax), %r12
|
|
|
|
movq pt_regs_r13(%rax), %r13
|
|
|
|
movq pt_regs_r14(%rax), %r14
|
|
|
|
movq pt_regs_r15(%rax), %r15
|
2005-04-16 18:20:36 -04:00
|
|
|
|
|
|
|
xorl %eax, %eax
|
|
|
|
addq $8, %rsp
|
|
|
|
jmp restore_processor_state
|
|
|
|
.LFE5:
|
|
|
|
.Lfe5:
|
|
|
|
.size do_suspend_lowlevel,.Lfe5-do_suspend_lowlevel
|
|
|
|
|
|
|
|
.data
|
|
|
|
ALIGN
|
2007-05-02 13:27:07 -04:00
|
|
|
ENTRY(saved_rbp) .quad 0
|
|
|
|
ENTRY(saved_rsi) .quad 0
|
|
|
|
ENTRY(saved_rdi) .quad 0
|
|
|
|
ENTRY(saved_rbx) .quad 0
|
2005-04-16 18:20:36 -04:00
|
|
|
|
2007-05-02 13:27:07 -04:00
|
|
|
ENTRY(saved_rip) .quad 0
|
|
|
|
ENTRY(saved_rsp) .quad 0
|
2005-04-16 18:20:36 -04:00
|
|
|
|
|
|
|
ENTRY(saved_magic) .quad 0
|