suspend_32.h 674 Bytes
Newer Older
1
/* SPDX-License-Identifier: GPL-2.0 */
Linus Torvalds's avatar
Linus Torvalds committed
2 3 4 5 6
/*
 * Copyright 2001-2002 Pavel Machek <pavel@suse.cz>
 * Based on code
 * Copyright 2001 Patrick Mochel <mochel@osdl.org>
 */
7 8
#ifndef _ASM_X86_SUSPEND_32_H
#define _ASM_X86_SUSPEND_32_H
Vegard Nossum's avatar
Vegard Nossum committed
9

Linus Torvalds's avatar
Linus Torvalds committed
10
#include <asm/desc.h>
11
#include <asm/fpu/api.h>
Linus Torvalds's avatar
Linus Torvalds committed
12 13 14

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

29
#endif /* _ASM_X86_SUSPEND_32_H */