coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
finalize.c
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#include <types.h>
4
#include <
cpu/x86/msr.h
>
5
6
#include "
model_206ax.h
"
7
8
/* MSR Documentation based on
9
* "Sandy Bridge Processor Family BIOS Writer's Guide (BWG)"
10
* Document Number 504790
11
* Revision 1.6.0, June 2012 */
12
13
void
intel_model_206ax_finalize_smm
(
void
)
14
{
15
/* Lock TM interrupts - route thermal events to all processors */
16
msr_set
(
MSR_MISC_PWR_MGMT
,
BIT
(22));
17
18
/* Lock memory configuration to protect SMM */
19
msr_set
(
MSR_LT_LOCK_MEMORY
,
BIT
(0));
20
}
MSR_MISC_PWR_MGMT
#define MSR_MISC_PWR_MGMT
Definition:
haswell.h:51
MSR_LT_LOCK_MEMORY
#define MSR_LT_LOCK_MEMORY
Definition:
haswell.h:57
intel_model_206ax_finalize_smm
void intel_model_206ax_finalize_smm(void)
Definition:
finalize.c:13
BIT
#define BIT(nr)
Definition:
ec_commands.h:45
msr.h
msr_set
static void msr_set(unsigned int reg, uint64_t set)
Helper for setting MSR bitmasks.
Definition:
msr.h:381
model_206ax.h
src
cpu
intel
model_206ax
finalize.c
Generated by
1.9.1