intel/smm: Define struct ied_header just once
Change-Id: I6fc083aa30d05c11c1b6db7b3facacf5ae857c92 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34855 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
parent
faf20d30a6
commit
2c430c8c5b
8 changed files with 6 additions and 36 deletions
|
@ -40,11 +40,6 @@
|
|||
#define G_SMRAME (1 << 3)
|
||||
#define C_BASE_SEG ((0 << 2) | (1 << 1) | (0 << 0))
|
||||
|
||||
struct ied_header {
|
||||
char signature[10];
|
||||
u32 size;
|
||||
u8 reserved[34];
|
||||
} __packed;
|
||||
|
||||
|
||||
struct smm_relocation_params {
|
||||
|
|
|
@ -16,6 +16,12 @@
|
|||
|
||||
#include <types.h>
|
||||
|
||||
struct ied_header {
|
||||
char signature[10];
|
||||
u32 size;
|
||||
u8 reserved[34];
|
||||
} __packed;
|
||||
|
||||
/* These helpers are for performing SMM relocation. */
|
||||
u32 northbridge_get_tseg_base(void);
|
||||
u32 northbridge_get_tseg_size(void);
|
||||
|
|
|
@ -208,12 +208,6 @@
|
|||
#ifndef __ASSEMBLER__
|
||||
static inline void barrier(void) { asm("" ::: "memory"); }
|
||||
|
||||
struct ied_header {
|
||||
char signature[10];
|
||||
u32 size;
|
||||
u8 reserved[34];
|
||||
} __packed;
|
||||
|
||||
#ifdef __SMM__
|
||||
void intel_northbridge_haswell_finalize_smm(void);
|
||||
#else /* !__SMM__ */
|
||||
|
|
|
@ -19,11 +19,6 @@
|
|||
#include <stdint.h>
|
||||
#include <cpu/x86/msr.h>
|
||||
|
||||
struct ied_header {
|
||||
char signature[10];
|
||||
u32 size;
|
||||
u8 reserved[34];
|
||||
} __packed;
|
||||
|
||||
struct smm_relocation_params {
|
||||
u32 smram_base;
|
||||
|
|
|
@ -22,11 +22,6 @@
|
|||
#include <cpu/x86/smm.h>
|
||||
#include <soc/gpio.h>
|
||||
|
||||
struct ied_header {
|
||||
char signature[10];
|
||||
u32 size;
|
||||
u8 reserved[34];
|
||||
} __packed;
|
||||
|
||||
struct smm_relocation_params {
|
||||
uintptr_t ied_base;
|
||||
|
|
|
@ -20,11 +20,6 @@
|
|||
#include <stdint.h>
|
||||
#include <cpu/x86/msr.h>
|
||||
|
||||
struct ied_header {
|
||||
char signature[10];
|
||||
u32 size;
|
||||
u8 reserved[34];
|
||||
} __packed;
|
||||
|
||||
struct smm_relocation_params {
|
||||
u32 smram_base;
|
||||
|
|
|
@ -21,11 +21,6 @@
|
|||
#include <cpu/x86/smm.h>
|
||||
#include <soc/gpio.h>
|
||||
|
||||
struct ied_header {
|
||||
char signature[10];
|
||||
u32 size;
|
||||
u8 reserved[34];
|
||||
} __packed;
|
||||
|
||||
struct smm_relocation_params {
|
||||
uintptr_t ied_base;
|
||||
|
|
|
@ -23,11 +23,6 @@
|
|||
#include <intelblocks/smihandler.h>
|
||||
#include <soc/gpio.h>
|
||||
|
||||
struct ied_header {
|
||||
char signature[10];
|
||||
u32 size;
|
||||
u8 reserved[34];
|
||||
} __packed;
|
||||
|
||||
struct smm_relocation_params {
|
||||
uintptr_t ied_base;
|
||||
|
|
Loading…
Reference in a new issue