coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
smi.c
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-or-later */
2
3
/*
4
* Utilities for SMM setup
5
*/
6
7
#include <
amdblocks/acpimmio.h
>
8
#include <
cpu/x86/smm.h
>
9
10
#include "
smi.h
"
11
12
/** Set the EOS bit and enable SMI generation from southbridge */
13
void
global_smi_enable
(
void
)
14
{
15
uint32_t
reg =
smi_read32
(
SMI_REG_SMITRIG0
);
16
reg &= ~
SMITRG0_SMIENB
;
/* Enable SMI generation */
17
reg |=
SMITRG0_EOS
;
/* Set EOS bit */
18
smi_write32
(
SMI_REG_SMITRIG0
, reg);
19
}
acpimmio.h
smi_write32
static void smi_write32(uint8_t reg, uint32_t value)
Definition:
acpimmio.h:161
smi_read32
static uint32_t smi_read32(uint8_t reg)
Definition:
acpimmio.h:146
smm.h
SMITRG0_EOS
#define SMITRG0_EOS
Definition:
smi.h:165
SMITRG0_SMIENB
#define SMITRG0_SMIENB
Definition:
smi.h:167
SMI_REG_SMITRIG0
#define SMI_REG_SMITRIG0
Definition:
smi.h:163
global_smi_enable
void global_smi_enable(void)
Set the EOS bit and enable SMI generation from southbridge.
Definition:
smi.c:53
smi.h
uint32_t
unsigned int uint32_t
Definition:
stdint.h:14
src
southbridge
amd
pi
hudson
smi.c
Generated by
1.9.1