blob: 8e9dbe7b73a1fa2d3c2a5b26a3d226352157c637 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * Copyright 2001-2002 Pavel Machek <pavel@suse.cz>
3 * Based on code
4 * Copyright 2001 Patrick Mochel <mochel@osdl.org>
5 */
H. Peter Anvin1965aae2008-10-22 22:26:29 -07006#ifndef _ASM_X86_SUSPEND_32_H
7#define _ASM_X86_SUSPEND_32_H
Vegard Nossum0db125c2008-06-10 23:45:45 +02008
Linus Torvalds1da177e2005-04-16 15:20:36 -07009#include <asm/desc.h>
Ingo Molnardf6b35f2015-04-24 02:46:00 +020010#include <asm/fpu/api.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070011
Linus Torvalds1da177e2005-04-16 15:20:36 -070012/* image of the saved processor state */
13struct saved_context {
Joe Perchescf030eb2008-03-23 01:03:35 -070014 u16 es, fs, gs, ss;
Linus Torvalds1da177e2005-04-16 15:20:36 -070015 unsigned long cr0, cr2, cr3, cr4;
Ondrej Zary85a0e752010-06-08 00:32:49 +020016 u64 misc_enable;
17 bool misc_enable_saved;
Chen Yu7a9c2dd2015-11-25 01:03:41 +080018 struct saved_msrs saved_msrs;
Konrad Rzeszutek Wilkcc456c42013-05-01 21:53:30 -040019 struct desc_ptr gdt_desc;
Glauber de Oliveira Costa6b68f012008-01-30 13:31:12 +010020 struct desc_ptr idt;
Linus Torvalds1da177e2005-04-16 15:20:36 -070021 u16 ldt;
22 u16 tss;
23 unsigned long tr;
24 unsigned long safety;
25 unsigned long return_address;
26} __attribute__((packed));
27
H. Peter Anvin1965aae2008-10-22 22:26:29 -070028#endif /* _ASM_X86_SUSPEND_32_H */