L2 cache code is solid. Experimenting with VIA SPD code -- no good.

This commit is contained in:
Ronald G. Minnich 2000-11-29 19:46:39 +00:00
parent bb441faa1c
commit 48607dd0b7
2 changed files with 7 additions and 6 deletions

View file

@ -29,8 +29,8 @@
#include <southbridge/via/vt82c686/setup_serial.inc> #include <southbridge/via/vt82c686/setup_serial.inc>
#include <pc80/serial.inc> #include <pc80/serial.inc>
/*
#include <pc80/i8259.inc> #include <pc80/i8259.inc>
/*
*/ */
TTYS0_TX_STRING($ttyS0_test) TTYS0_TX_STRING($ttyS0_test)

View file

@ -70,7 +70,8 @@ static void cache_disable(void)
"orl $0x40000000, %0\n\t" "orl $0x40000000, %0\n\t"
"wbinvd\n\t" "wbinvd\n\t"
"movl %0, %%cr0\n\t" "movl %0, %%cr0\n\t"
"wbinvd\n\t":"=r" (tmp)::"memory"); "wbinvd\n\t"
: "=r" (tmp) : : "memory");
} }
static void cache_enable(void) static void cache_enable(void)
@ -79,7 +80,8 @@ static void cache_enable(void)
asm volatile ("movl %%cr0, %0\n\t" asm volatile ("movl %%cr0, %0\n\t"
"andl $0x9fffffff, %0\n\t" "andl $0x9fffffff, %0\n\t"
"movl %0, %%cr0\n\t":"=r" (tmp)::"memory"); "movl %0, %%cr0\n\t"
:"=r" (tmp) : : "memory");
} }
int intel_l2_configure() int intel_l2_configure()
@ -107,8 +109,7 @@ int intel_l2_configure()
} }
if (signature < 0x630 || signature >= 0x680) { if (signature < 0x630 || signature >= 0x680) {
DBG DBG("CPU signature of %x so no L2 cache configuration\n",
("CPU signature of %x so no need for L2 cache configuration\n",
signature); signature);
return 0; return 0;
} }
@ -404,7 +405,7 @@ static int write_l2_2(unsigned int address,
data2 &= 0x1800; data2 &= 0x1800;
data1 |= data2; data1 |= data2;
data2 = data2 >> 6; data2 = data2 << 6;
data2 &= 0x20000; data2 &= 0x20000;
data1 |= data2; data1 |= data2;