2 * Copyright 2001-2003 Pavel Machek <pavel@suse.cz>
4 * Copyright 2001 Patrick Mochel <mochel@osdl.org>
6 #ifndef __ASM_X86_64_SUSPEND_H
7 #define __ASM_X86_64_SUSPEND_H
13 arch_prepare_suspend(void)
18 /* Image of the saved processor state. If you touch this, fix acpi/wakeup.S. */
19 struct saved_context {
21 u16 ds, es, fs, gs, ss;
22 unsigned long gs_base, gs_kernel_base, fs_base;
23 unsigned long cr0, cr2, cr3, cr4, cr8;
27 unsigned long gdt_base;
30 unsigned long idt_base;
35 unsigned long return_address;
36 } __attribute__((packed));
38 #define loaddebug(thread,register) \
39 set_debugreg((thread)->debugreg##register, register)
41 extern void fix_processor_context(void);
43 /* routines for saving/restoring kernel state */
44 extern int acpi_save_state_mem(void);
45 extern char core_restore_code;
46 extern char restore_registers;
48 #endif /* __ASM_X86_64_SUSPEND_H */