Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2001-2002 Pavel Machek <pavel@suse.cz> |
| 3 | * Based on code |
| 4 | * Copyright 2001 Patrick Mochel <mochel@osdl.org> |
| 5 | */ |
H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 6 | #ifndef _ASM_X86_SUSPEND_32_H |
| 7 | #define _ASM_X86_SUSPEND_32_H |
Vegard Nossum | 0db125c | 2008-06-10 23:45:45 +0200 | [diff] [blame] | 8 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | #include <asm/desc.h> |
Ingo Molnar | df6b35f | 2015-04-24 02:46:00 +0200 | [diff] [blame] | 10 | #include <asm/fpu/api.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | /* image of the saved processor state */ |
| 13 | struct saved_context { |
Joe Perches | cf030eb | 2008-03-23 01:03:35 -0700 | [diff] [blame] | 14 | u16 es, fs, gs, ss; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | unsigned long cr0, cr2, cr3, cr4; |
Ondrej Zary | 85a0e75 | 2010-06-08 00:32:49 +0200 | [diff] [blame] | 16 | u64 misc_enable; |
| 17 | bool misc_enable_saved; |
Chen Yu | 7a9c2dd | 2015-11-25 01:03:41 +0800 | [diff] [blame] | 18 | struct saved_msrs saved_msrs; |
Konrad Rzeszutek Wilk | cc456c4 | 2013-05-01 21:53:30 -0400 | [diff] [blame] | 19 | struct desc_ptr gdt_desc; |
Glauber de Oliveira Costa | 6b68f01 | 2008-01-30 13:31:12 +0100 | [diff] [blame] | 20 | struct desc_ptr idt; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 21 | u16 ldt; |
| 22 | u16 tss; |
| 23 | unsigned long tr; |
| 24 | unsigned long safety; |
| 25 | unsigned long return_address; |
| 26 | } __attribute__((packed)); |
| 27 | |
H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 28 | #endif /* _ASM_X86_SUSPEND_32_H */ |