Use symbolic names for some MTRR bits instead of numbers in CAR code

Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6493 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Stefan Reinauer
2011-04-14 20:06:30 +00:00
committed by Stefan Reinauer
parent 528b43db32
commit 139e6f9555
4 changed files with 16 additions and 16 deletions

View File

@@ -254,7 +254,7 @@ clear_fixed_var_mtrr_out:
movl $MTRRphysMask_MSR(1), %ecx
movl $0x0000000f, %edx
movl $(~(CONFIG_XIP_ROM_SIZE - 1) | 0x800), %eax
movl $(~(CONFIG_XIP_ROM_SIZE - 1) | MTRRphysMaskValid), %eax
wrmsr
#endif /* CONFIG_XIP_ROM_SIZE && CONFIG_XIP_ROM_BASE */
@@ -354,7 +354,7 @@ lout:
*/
movl $MTRRdefType_MSR, %ecx
xorl %edx, %edx
movl $0x00000800, %eax /* Enable variable and disable fixed MTRRs. */
movl $MTRRdefTypeEn, %eax /* Enable variable and disable fixed MTRRs. */
wrmsr
/* Enable cache. */