diff options
author | Stefan Reinauer <stepan@openbios.org> | 2006-06-18 07:41:48 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2006-06-18 07:41:48 +0000 |
commit | 3951027f57c56cde468d0d717842c42fb7a197f7 (patch) | |
tree | dfaf5e9c1d136f2d430c16fdcc87f555cd374f97 /src/cpu/amd | |
parent | 2d7bb590187052e96113d45378f0182f7d692e40 (diff) |
* delete two empty files
* commit SMM lock code.
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2325 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/cpu/amd')
-rw-r--r-- | src/cpu/amd/model_fxx/model_fxx_init.c | 7 | ||||
-rw-r--r-- | src/cpu/amd/model_fxx/model_fxx_msr.h | 0 | ||||
-rw-r--r-- | src/cpu/amd/model_fxx/node_id.c | 0 |
3 files changed, 6 insertions, 1 deletions
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 <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> @@ -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 --- a/src/cpu/amd/model_fxx/model_fxx_msr.h +++ /dev/null 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 --- a/src/cpu/amd/model_fxx/node_id.c +++ /dev/null |