Add mtrr support for pentium m cpus

For cache to work the x86_setup_mtrrs() must be called. 

Closes #61

Signed-off-by: Jon Dufresne <jon.dufresne@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2522 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Jon Dufresne 2006-12-14 00:40:09 +00:00 committed by Stefan Reinauer
parent 0fac1e56d7
commit a522df039b
3 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,7 @@ static void model_69x_init(device_t dev)
{ {
/* Turn on caching if we haven't already */ /* Turn on caching if we haven't already */
x86_enable_cache(); x86_enable_cache();
x86_setup_mtrrs(36);
x86_mtrr_check(); x86_mtrr_check();
/* Update the microcode */ /* Update the microcode */

View File

@ -24,6 +24,7 @@ static void model_6dx_init(device_t dev)
{ {
/* Turn on caching if we haven't already */ /* Turn on caching if we haven't already */
x86_enable_cache(); x86_enable_cache();
x86_setup_mtrrs(36);
x86_mtrr_check(); x86_mtrr_check();
/* Update the microcode */ /* Update the microcode */

View File

@ -30,6 +30,7 @@ static void model_6xx_init(device_t dev)
{ {
/* Turn on caching if we haven't already */ /* Turn on caching if we haven't already */
x86_enable_cache(); x86_enable_cache();
x86_setup_mtrrs(36);
x86_mtrr_check(); x86_mtrr_check();
/* Update the microcode */ /* Update the microcode */