From d35c7fe1bff55471c62b11d208cf3a71dec30d6d Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Tue, 30 Oct 2018 07:07:00 +0100 Subject: amd/mtrr: Fix IORR MTRR IORR MTRR definitions renamed to avoid collision between and . Change-Id: I3eeb0c69bbb76039039dc90683670cafcb00ed36 Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/29352 Reviewed-by: Richard Spiegel Reviewed-by: Paul Menzel Tested-by: build bot (Jenkins) --- src/cpu/amd/mtrr/amd_mtrr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cpu/amd/mtrr') diff --git a/src/cpu/amd/mtrr/amd_mtrr.c b/src/cpu/amd/mtrr/amd_mtrr.c index 8cb6658d18..2002dd8fcb 100644 --- a/src/cpu/amd/mtrr/amd_mtrr.c +++ b/src/cpu/amd/mtrr/amd_mtrr.c @@ -138,7 +138,7 @@ void amd_setup_mtrrs(void) * undefined side effects. */ msr.lo = msr.hi = 0; - for (i = IORR_FIRST; i <= IORR_LAST; i++) + for (i = MTRR_IORR0_BASE; i <= MTRR_IORR1_MASK; i++) wrmsr(i, msr); /* Enable Variable Mtrrs -- cgit v1.2.3