diff options
author | Furquan Shaikh <furquan@google.com> | 2016-04-19 15:49:23 -0700 |
---|---|---|
committer | Furquan Shaikh <furquan@google.com> | 2016-04-21 08:24:33 +0200 |
commit | 581c42807d358a66c2a4b3680d465a7069feb2f4 (patch) | |
tree | 08c7bf01437273cb5532351bb3e2b839d0556f40 /src/soc/intel/apollolake | |
parent | defbdcf3e58a7148ecd3c448e4d1e6683d54bd22 (diff) | |
download | coreboot-581c42807d358a66c2a4b3680d465a7069feb2f4.tar.xz |
soc/intel/apollolake: Set default memory type to uncacheable
Set the default memory type in MTRRCap register to 0. This ensures
that even if the MTRR Enable bit is set in MTRRCap register, the
default memory type is still uncacheable.
Change-Id: I63e7993f8b65dabbab60e7c1bb8d6d89ef4da9ee
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/14428
Tested-by: build bot (Jenkins)
Reviewed-by: Andrey Petrov <andrey.petrov@intel.com>
Diffstat (limited to 'src/soc/intel/apollolake')
-rw-r--r-- | src/soc/intel/apollolake/bootblock/cache_as_ram.S | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/soc/intel/apollolake/bootblock/cache_as_ram.S b/src/soc/intel/apollolake/bootblock/cache_as_ram.S index 9d2bba01e8..cd301ac5e9 100644 --- a/src/soc/intel/apollolake/bootblock/cache_as_ram.S +++ b/src/soc/intel/apollolake/bootblock/cache_as_ram.S @@ -63,7 +63,9 @@ clear_var_mtrr: /* Configure default memory type to uncacheable (UC) */ mov $MTRR_DEF_TYPE_MSR, %ecx rdmsr - and $MTRR_DEF_TYPE_MASK, %eax + /* Clear enable bits and set default type to UC. */ + and $~(MTRR_DEF_TYPE_MASK | MTRR_DEF_TYPE_EN | \ + MTRR_DEF_TYPE_FIX_EN), %eax wrmsr post_code(0x24) |