Merge tag 'pm-4.13-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
[linux/fpc-iii.git] / arch / x86 / include / asm / suspend_32.h
blob8e9dbe7b73a1fa2d3c2a5b26a3d226352157c637
1 /*
2 * Copyright 2001-2002 Pavel Machek <pavel@suse.cz>
3 * Based on code
4 * Copyright 2001 Patrick Mochel <mochel@osdl.org>
5 */
6 #ifndef _ASM_X86_SUSPEND_32_H
7 #define _ASM_X86_SUSPEND_32_H
9 #include <asm/desc.h>
10 #include <asm/fpu/api.h>
12 /* image of the saved processor state */
13 struct saved_context {
14 u16 es, fs, gs, ss;
15 unsigned long cr0, cr2, cr3, cr4;
16 u64 misc_enable;
17 bool misc_enable_saved;
18 struct saved_msrs saved_msrs;
19 struct desc_ptr gdt_desc;
20 struct desc_ptr idt;
21 u16 ldt;
22 u16 tss;
23 unsigned long tr;
24 unsigned long safety;
25 unsigned long return_address;
26 } __attribute__((packed));
28 #endif /* _ASM_X86_SUSPEND_32_H */