suspend_32.h 601 字节
Newer Older
L
Linus Torvalds 已提交
1 2 3 4 5
/*
 * Copyright 2001-2002 Pavel Machek <pavel@suse.cz>
 * Based on code
 * Copyright 2001 Patrick Mochel <mochel@osdl.org>
 */
H
H. Peter Anvin 已提交
6 7
#ifndef _ASM_X86_SUSPEND_32_H
#define _ASM_X86_SUSPEND_32_H
V
Vegard Nossum 已提交
8

L
Linus Torvalds 已提交
9 10 11 12 13
#include <asm/desc.h>
#include <asm/i387.h>

/* image of the saved processor state */
struct saved_context {
14
	u16 es, fs, gs, ss;
L
Linus Torvalds 已提交
15
	unsigned long cr0, cr2, cr3, cr4;
16 17
	u64 misc_enable;
	bool misc_enable_saved;
18
	struct desc_ptr gdt_desc;
19
	struct desc_ptr idt;
L
Linus Torvalds 已提交
20 21 22 23 24 25 26
	u16 ldt;
	u16 tss;
	unsigned long tr;
	unsigned long safety;
	unsigned long return_address;
} __attribute__((packed));

H
H. Peter Anvin 已提交
27
#endif /* _ASM_X86_SUSPEND_32_H */