coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
legacy_save_state.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef __X86_LEGACY_SAVE_STATE_H__
4 #define __X86_LEGACY_SAVE_STATE_H__
5 
6 #include <types.h>
7 
8 /* Legacy x86 SMM State-Save Area
9  * starts @ 0x7e00
10  */
11 #define SMM_LEGACY_ARCH_OFFSET 0x7e00
12 
13 typedef struct {
14  u8 reserved0[248];
15  u32 smbase;
17  u16 io_restart;
18  u16 autohalt_restart;
19  u8 reserved1[132];
21  u8 reserved2[8];
23  u8 reserved3[16];
46 } __packed legacy_smm_state_save_area_t;
47 
48 #endif
uint32_t smm_revision(void)
Definition: smihandler.c:109
uint32_t u32
Definition: stdint.h:51
uint16_t u16
Definition: stdint.h:48
uint8_t u8
Definition: stdint.h:45
Definition: x86.c:23