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 */
14 {
16  reg &= ~SMITRG0_SMIENB; /* Enable SMI generation */
17  reg |= SMITRG0_EOS; /* Set EOS bit */
19 }
static void smi_write32(uint8_t reg, uint32_t value)
Definition: acpimmio.h:161
static uint32_t smi_read32(uint8_t reg)
Definition: acpimmio.h:146
#define SMITRG0_EOS
Definition: smi.h:165
#define SMITRG0_SMIENB
Definition: smi.h:167
#define SMI_REG_SMITRIG0
Definition: smi.h:163
void global_smi_enable(void)
Set the EOS bit and enable SMI generation from southbridge.
Definition: smi.c:53
unsigned int uint32_t
Definition: stdint.h:14