arch/x86/postcar_loader: utilize var_mtrr_context API
Now that there is a generic solution in mtrr subsystem utilize the API. BUG=b:155426691,b:155322763 Change-Id: Ie349d5669808928c7470c99d25c57c784174b4e9 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/41850 Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
@@ -59,7 +59,7 @@ void recover_postcar_frame(struct postcar_frame *pcf, int s3resume)
|
||||
|
||||
/* Replicate non-UC MTRRs as left behind by AGESA.
|
||||
*/
|
||||
for (i = 0; i < pcf->max_var_mtrrs; i++) {
|
||||
for (i = 0; i < pcf->ctx.max_var_mtrrs; i++) {
|
||||
mask = rdmsr(MTRR_PHYS_MASK(i));
|
||||
base = rdmsr(MTRR_PHYS_BASE(i));
|
||||
u32 size = ~(mask.lo & ~0xfff) + 1;
|
||||
|
Reference in New Issue
Block a user