aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-i386/suspend.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2007-10-11 05:20:03 -0400
committerThomas Gleixner <tglx@linutronix.de>2007-10-11 05:20:03 -0400
commit96a388de5dc53a8b234b3fd41f3ae2cedc9ffd42 (patch)
treed947a467aa2da3140279617bc4b9b101640d7bf4 /include/asm-i386/suspend.h
parent27bd0c955648646abf2a353a8371d28c37bcd982 (diff)
i386/x86_64: move headers to include/asm-x86
Move the headers to include/asm-x86 and fixup the header install make rules Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-i386/suspend.h')
-rw-r--r--include/asm-i386/suspend.h46
1 files changed, 0 insertions, 46 deletions
diff --git a/include/asm-i386/suspend.h b/include/asm-i386/suspend.h
deleted file mode 100644
index a2520732ffd6..000000000000
--- a/include/asm-i386/suspend.h
+++ /dev/null
@@ -1,46 +0,0 @@
1/*
2 * Copyright 2001-2002 Pavel Machek <pavel@suse.cz>
3 * Based on code
4 * Copyright 2001 Patrick Mochel <mochel@osdl.org>
5 */
6#include <asm/desc.h>
7#include <asm/i387.h>
8
9static inline int arch_prepare_suspend(void) { return 0; }
10
11/* image of the saved processor state */
12struct saved_context {
13 u16 es, fs, gs, ss;
14 unsigned long cr0, cr2, cr3, cr4;
15 struct Xgt_desc_struct gdt;
16 struct Xgt_desc_struct idt;
17 u16 ldt;
18 u16 tss;
19 unsigned long tr;
20 unsigned long safety;
21 unsigned long return_address;
22} __attribute__((packed));
23
24#ifdef CONFIG_ACPI
25extern unsigned long saved_eip;
26extern unsigned long saved_esp;
27extern unsigned long saved_ebp;
28extern unsigned long saved_ebx;
29extern unsigned long saved_esi;
30extern unsigned long saved_edi;
31
32static inline void acpi_save_register_state(unsigned long return_point)
33{
34 saved_eip = return_point;
35 asm volatile ("movl %%esp,%0" : "=m" (saved_esp));
36 asm volatile ("movl %%ebp,%0" : "=m" (saved_ebp));
37 asm volatile ("movl %%ebx,%0" : "=m" (saved_ebx));
38 asm volatile ("movl %%edi,%0" : "=m" (saved_edi));
39 asm volatile ("movl %%esi,%0" : "=m" (saved_esi));
40}
41
42#define acpi_restore_register_state() do {} while (0)
43
44/* routines for saving/restoring kernel state */
45extern int acpi_save_state_mem(void);
46#endif