It is possible that MB's with really broken bios's not set up more of

the mtrr registers.  This just fills in more of the registers.
This commit is contained in:
John Dyson 1997-10-06 02:11:32 +00:00
parent a5cd8a3572
commit 42c0de4926
7 changed files with 56 additions and 0 deletions

View File

@ -2036,6 +2036,14 @@ void
putfmtrr() {
if (cpu_class == CPUCLASS_686) {
wbinvd();
/*
* Set memory between 0-640K to be WB
*/
wrmsr(0x250, 0x0606060606060606LL);
wrmsr(0x258, 0x0606060606060606LL);
/*
* Set normal, PC video memory to be WC
*/
wrmsr(0x259, 0x0101010101010101LL);
}
}

View File

@ -2036,6 +2036,14 @@ void
putfmtrr() {
if (cpu_class == CPUCLASS_686) {
wbinvd();
/*
* Set memory between 0-640K to be WB
*/
wrmsr(0x250, 0x0606060606060606LL);
wrmsr(0x258, 0x0606060606060606LL);
/*
* Set normal, PC video memory to be WC
*/
wrmsr(0x259, 0x0101010101010101LL);
}
}

View File

@ -2036,6 +2036,14 @@ void
putfmtrr() {
if (cpu_class == CPUCLASS_686) {
wbinvd();
/*
* Set memory between 0-640K to be WB
*/
wrmsr(0x250, 0x0606060606060606LL);
wrmsr(0x258, 0x0606060606060606LL);
/*
* Set normal, PC video memory to be WC
*/
wrmsr(0x259, 0x0101010101010101LL);
}
}

View File

@ -2036,6 +2036,14 @@ void
putfmtrr() {
if (cpu_class == CPUCLASS_686) {
wbinvd();
/*
* Set memory between 0-640K to be WB
*/
wrmsr(0x250, 0x0606060606060606LL);
wrmsr(0x258, 0x0606060606060606LL);
/*
* Set normal, PC video memory to be WC
*/
wrmsr(0x259, 0x0101010101010101LL);
}
}

View File

@ -2036,6 +2036,14 @@ void
putfmtrr() {
if (cpu_class == CPUCLASS_686) {
wbinvd();
/*
* Set memory between 0-640K to be WB
*/
wrmsr(0x250, 0x0606060606060606LL);
wrmsr(0x258, 0x0606060606060606LL);
/*
* Set normal, PC video memory to be WC
*/
wrmsr(0x259, 0x0101010101010101LL);
}
}

View File

@ -2036,6 +2036,14 @@ void
putfmtrr() {
if (cpu_class == CPUCLASS_686) {
wbinvd();
/*
* Set memory between 0-640K to be WB
*/
wrmsr(0x250, 0x0606060606060606LL);
wrmsr(0x258, 0x0606060606060606LL);
/*
* Set normal, PC video memory to be WC
*/
wrmsr(0x259, 0x0101010101010101LL);
}
}

View File

@ -2036,6 +2036,14 @@ void
putfmtrr() {
if (cpu_class == CPUCLASS_686) {
wbinvd();
/*
* Set memory between 0-640K to be WB
*/
wrmsr(0x250, 0x0606060606060606LL);
wrmsr(0x258, 0x0606060606060606LL);
/*
* Set normal, PC video memory to be WC
*/
wrmsr(0x259, 0x0101010101010101LL);
}
}