summaryrefslogtreecommitdiff
path: root/src/arch/i386/lib
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@openbios.org>2004-06-28 12:06:20 +0000
committerStefan Reinauer <stepan@openbios.org>2004-06-28 12:06:20 +0000
commit7fb8916011f66cc82feaf1a85848ad28209b5613 (patch)
treeb364c0b5ec6f28f9d3d7ee21733799268aa370c5 /src/arch/i386/lib
parentf2065a4cf9d8a66f237dfb0f7502b19f89a852c9 (diff)
make cpuid and mtrr check conditional. They are not there on cpus older than
i586/i686. git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1613 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/arch/i386/lib')
-rw-r--r--src/arch/i386/lib/cpu.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/arch/i386/lib/cpu.c b/src/arch/i386/lib/cpu.c
index 2006bc3a83..23c35bc816 100644
--- a/src/arch/i386/lib/cpu.c
+++ b/src/arch/i386/lib/cpu.c
@@ -128,9 +128,12 @@ unsigned long cpu_initialize(struct mem_range *mem)
/* Turn on caching if we haven't already */
cache_on(mem);
-
+#if i586==1
display_cpuid();
+#endif
+#if i686==1
mtrr_check();
+#endif
/* some cpus need a fixup done. This is the hook for doing that. */
cpufixup(mem);