From 7fb8916011f66cc82feaf1a85848ad28209b5613 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Mon, 28 Jun 2004 12:06:20 +0000 Subject: 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 --- src/arch/i386/lib/cpu.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/arch/i386/lib/cpu.c') 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); -- cgit v1.2.3