From 526855741b6abb970024366316b941fb6b3d2cb6 Mon Sep 17 00:00:00 2001 From: Eric Biederman Date: Mon, 19 May 2003 19:16:21 +0000 Subject: - Cleanups on the romcc side including a pci interface that uses fewer registers, and is easier to hardcode. git-svn-id: svn://svn.coreboot.org/coreboot/trunk@838 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/cpu/k8/earlymtrr.inc | 4 ++-- src/cpu/p5/cpuid.c | 4 ---- src/cpu/p6/mtrr.c | 6 ------ 3 files changed, 2 insertions(+), 12 deletions(-) (limited to 'src/cpu') diff --git a/src/cpu/k8/earlymtrr.inc b/src/cpu/k8/earlymtrr.inc index 7cd8443618..903405bdfb 100644 --- a/src/cpu/k8/earlymtrr.inc +++ b/src/cpu/k8/earlymtrr.inc @@ -46,12 +46,12 @@ set_var_mtrr: wrmsr #if defined(XIP_ROM_SIZE) && defined(XIP_ROM_BASE) - /* enable write protect caching so we can do execute in place + /* enable write back cachine so we can do execute in place * on the flash rom. */ movl $0x202, %ecx xorl %edx, %edx - movl $(XIP_ROM_BASE | 0x005), %eax + movl $(XIP_ROM_BASE | 0x006), %eax wrmsr movl $0x203, %ecx diff --git a/src/cpu/p5/cpuid.c b/src/cpu/p5/cpuid.c index d90cc2c124..d98ce13a8e 100644 --- a/src/cpu/p5/cpuid.c +++ b/src/cpu/p5/cpuid.c @@ -1,7 +1,3 @@ -#ifndef lint -static char rcsid[] = "$Id$"; -#endif - #include #include #ifdef i586 diff --git a/src/cpu/p6/mtrr.c b/src/cpu/p6/mtrr.c index b88e174869..59de9b5ece 100644 --- a/src/cpu/p6/mtrr.c +++ b/src/cpu/p6/mtrr.c @@ -25,10 +25,6 @@ * $Id$ */ -#ifndef lint -static char rcsid[] = "$Id$"; -#endif - #include #include #include @@ -128,8 +124,6 @@ static void intel_set_var_mtrr(unsigned int reg, unsigned long basek, unsigned l /* setting variable mtrr, comes from linux kernel source */ void set_var_mtrr(unsigned int reg, unsigned long base, unsigned long size, unsigned char type) { - unsigned int tmp; - if (reg >= 8) return; -- cgit v1.2.3