coreboot-kgpe-d16/src/cpu
Aaron Durbin 77a5b4046a x86: mtrr: add CONFIG_CACHE_ROM support
The CONFIG_CACHE_ROM support in the MTRR code allocates an MTRR
specifically for setting up write-protect cachine of the ROM. It is
assumed that CONFIG_ROM_SIZE is the size of the ROM and the whole
area should be cached just under 4GiB. If enabled, the MTRR code
will allocate but not enable rom caching. It is up to the callers
of the MTRR code to explicitly enable (and disable afterwards) through
the use of 2 new functions:
- x86_mtrr_enable_rom_caching()
- x86_mtrr_disable_rom_caching()

Additionally, the CACHE_ROM option is exposed to the config menu so
that it is not just selected by the chipset or board. The reasoning
is that through a multitude of options CACHE_ROM may not be appropriate
for enabling.

Change-Id: I4483df850f442bdcef969ffeaf7608ed70b88085
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/2918
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
2013-03-29 19:59:53 +01:00
..
amd x86: unify amd and non-amd MTRR routines 2013-03-22 04:06:42 +01:00
armltd ARMV7: minor tweaks to inter-stage calling and payload handling. 2013-02-20 20:49:16 +01:00
intel haswell: Add microcode for ULT C0 stepping 0x40651 2013-03-22 00:17:00 +01:00
samsung exynos5250: assign RAM resources in cpu_init() 2013-03-27 02:00:52 +01:00
via GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
x86 x86: mtrr: add CONFIG_CACHE_ROM support 2013-03-29 19:59:53 +01:00
Kconfig Fix microcode selection code 2013-02-27 21:01:53 +01:00
Makefile.inc Fix microcode selection code 2013-02-27 21:01:53 +01:00