summaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
authorEric Biederman <ebiederm@xmission.com>2003-05-19 19:16:21 +0000
committerEric Biederman <ebiederm@xmission.com>2003-05-19 19:16:21 +0000
commit526855741b6abb970024366316b941fb6b3d2cb6 (patch)
tree7da1560ec08c513a23b23704cae3637925e5bd68 /src/cpu
parent49cf5967ce31af37e61d59a00939f50bc4256761 (diff)
downloadcoreboot-526855741b6abb970024366316b941fb6b3d2cb6.tar.xz
- 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
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/k8/earlymtrr.inc4
-rw-r--r--src/cpu/p5/cpuid.c4
-rw-r--r--src/cpu/p6/mtrr.c6
3 files changed, 2 insertions, 12 deletions
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 <console/console.h>
#include <cpu/p5/cpuid.h>
#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 <console/console.h>
#include <mem.h>
#include <cpu/p6/msr.h>
@@ -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;