* commit SMM lock code.
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2325
2b7e53f0-3cfb-0310-b3e9-
8179ed1497e1
#include <device/device.h>
#include <device/pci.h>
#include <string.h>
-#include <cpu/x86/msr.h>
#include <cpu/x86/pae.h>
#include <pc80/mc146818rtc.h>
#include <cpu/x86/lapic.h>
k8_errata();
+ /* Set SMMLOCK to avoid exploits messing with SMM */
+ msr = rdmsr(HWCR_MSR);
+ msr.lo |= (1 << 0);
+ wrmsr(HWCR_MSR, msr);
+
+ /* Set the processor name string */
init_processor_name();
enable_cache();