From 3951027f57c56cde468d0d717842c42fb7a197f7 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Sun, 18 Jun 2006 07:41:48 +0000 Subject: [PATCH] * delete two empty files * commit SMM lock code. git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2325 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/cpu/amd/model_fxx/model_fxx_init.c | 7 ++++++- src/cpu/amd/model_fxx/model_fxx_msr.h | 0 src/cpu/amd/model_fxx/node_id.c | 0 3 files changed, 6 insertions(+), 1 deletion(-) delete mode 100644 src/cpu/amd/model_fxx/model_fxx_msr.h delete mode 100644 src/cpu/amd/model_fxx/node_id.c diff --git a/src/cpu/amd/model_fxx/model_fxx_init.c b/src/cpu/amd/model_fxx/model_fxx_init.c index e83873e3b0..16d6509430 100644 --- a/src/cpu/amd/model_fxx/model_fxx_init.c +++ b/src/cpu/amd/model_fxx/model_fxx_init.c @@ -13,7 +13,6 @@ #include #include #include -#include #include #include #include @@ -455,6 +454,12 @@ void model_fxx_init(device_t dev) 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(); diff --git a/src/cpu/amd/model_fxx/model_fxx_msr.h b/src/cpu/amd/model_fxx/model_fxx_msr.h deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/src/cpu/amd/model_fxx/node_id.c b/src/cpu/amd/model_fxx/node_id.c deleted file mode 100644 index e69de29bb2..0000000000