cbfs: Remove remnants of ext-win-*
[coreboot2.git] / src / include / cpu / intel / em64t100_save_state.h
blobb656a284b37a13a499897f849e3ae60c0c7683d6
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef __EM64T100_SAVE_STATE_H__
4 #define __EM64T100_SAVE_STATE_H__
6 #include <types.h>
7 #include <cpu/x86/smm.h>
9 /* Intel Revision 30100 SMM State-Save Area */
11 #define SMM_EM64T100_ARCH_OFFSET 0x7c00
12 #define SMM_EM64T100_SAVE_STATE_OFFSET \
13 SMM_SAVE_STATE_BEGIN(SMM_EM64T100_ARCH_OFFSET)
14 typedef struct {
15 u8 reserved0[256];
16 u8 reserved1[208];
18 u32 gdtr_upper_base;
19 u32 ldtr_upper_base;
20 u32 idtr_upper_base;
22 u8 reserved2[4];
24 u64 io_rdi;
25 u64 io_rip;
26 u64 io_rcx;
27 u64 io_rsi;
29 u8 reserved3[64];
30 u32 cr4;
32 u8 reserved4[72];
34 u32 gdtr_base;
35 u8 reserved5[4];
36 u32 idtr_base;
37 u8 reserved6[4];
38 u32 ldtr_base;
40 u8 reserved7[88];
42 u32 smbase;
43 u32 smm_revision;
45 u16 io_restart;
46 u16 autohalt_restart;
48 u8 reserved8[24];
50 u64 r15;
51 u64 r14;
52 u64 r13;
53 u64 r12;
54 u64 r11;
55 u64 r10;
56 u64 r9;
57 u64 r8;
59 u64 rax;
60 u64 rcx;
61 u64 rdx;
62 u64 rbx;
64 u64 rsp;
65 u64 rbp;
66 u64 rsi;
67 u64 rdi;
69 u64 io_mem_addr;
70 u32 io_misc_info;
72 u32 es_sel;
73 u32 cs_sel;
74 u32 ss_sel;
75 u32 ds_sel;
76 u32 fs_sel;
77 u32 gs_sel;
79 u32 ldtr_sel;
80 u32 tr_sel;
82 u64 dr7;
83 u64 dr6;
84 u64 rip;
85 u64 efer;
86 u64 rflags;
88 u64 cr3;
89 u64 cr0;
90 } __packed em64t100_smm_state_save_area_t;
92 #endif