- See Issue Tracker ID-3 "lnxi-patch3"

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2067 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Jason Schildt 2005-10-25 21:07:34 +00:00
parent c9c4dd65ac
commit 6a2c09a386
1 changed files with 13 additions and 0 deletions

View File

@ -117,4 +117,17 @@ static void early_mtrr_init(void)
enable_cache(); enable_cache();
} }
static int early_mtrr_init_detected(void)
{
msr_t msr;
/* See if MTRR's are enabled.
* a #RESET disables them while an #INIT
* preserves their state. This works
* on both Intel and AMD cpus, at least
* according to the documentation.
*/
msr = rdmsr(MTRRdefType_MSR);
return msr.lo & 0x00000800;
}
#endif /* EARLYMTRR_C */ #endif /* EARLYMTRR_C */