2 * Copyright 2001-2002 Pavel Machek <pavel@suse.cz>
4 * Copyright 2001 Patrick Mochel <mochel@osdl.org>
6 #ifndef _ASM_X86_SUSPEND_32_H
7 #define _ASM_X86_SUSPEND_32_H
10 #include <asm/fpu/api.h>
12 /* image of the saved processor state */
13 struct saved_context {
15 * On x86_32, all segment registers, with the possible exception of
16 * gs, are saved at kernel entry in pt_regs.
18 #ifdef CONFIG_X86_32_LAZY_GS
21 unsigned long cr0, cr2, cr3, cr4;
23 bool misc_enable_saved;
24 struct saved_msrs saved_msrs;
25 struct desc_ptr gdt_desc;
31 unsigned long return_address;
32 } __attribute__((packed));
34 #endif /* _ASM_X86_SUSPEND_32_H */