intel/nehalem post-car: Use postcar_frame for MTRR setup

Adapt implementation from skylake to prepare for removal of HIGH_MEMORY_SAVE
and moving on to RELOCATABLE_RAMSTAGE. With the change, CBMEM and SMM regions
are set to WRBACK with MTRRs and romstage ram stack is moved to CBMEM.

Change-Id: I84f6fa6f37a7348b2d4ad9f08a18bebe4b1e34e2
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/15793
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
Kyösti Mälkki
2016-07-22 22:52:14 +03:00
parent d538dd1fe7
commit 2c3fd499cf
5 changed files with 77 additions and 33 deletions

View File

@@ -279,12 +279,9 @@ void mainboard_romstage_entry(unsigned long bist)
outl(reg32 & ~(7 << 10), DEFAULT_PMBASE + 0x04);
}
romstage_handoff_init(s3resume);
if (s3resume)
acpi_prepare_for_resume();
else
if (!s3resume)
quick_ram_check();
#if IS_ENABLED(CONFIG_LPC_TPM)

View File

@@ -269,11 +269,8 @@ void mainboard_romstage_entry(unsigned long bist)
outl(reg32 & ~(7 << 10), DEFAULT_PMBASE + 0x04);
}
romstage_handoff_init(s3resume);
if (s3resume)
acpi_prepare_for_resume();
else
if (!s3resume)
quick_ram_check();
}