coreboot-kgpe-d16/payloads/libpayload/arch/x86
Aaron Durbin a09760eb45 libpayload: add x86 ROM variable MTRR support
On x86, coreboot may allocate a variable range MTRR for enabling caching
of the system ROM. Add the ability to parse this structure and add the
result to the sysinfo structure.

An example usage implementation would be to obtain the variable MTRR
index that covers the ROM from the sysinfo structure. Then one would
disable caching and change the MTRR type from uncacheable to
write-protect and enable caching. The opposite sequence is required
to tearn down the caching.

Change-Id: I3bfe2028d8574d3adb1d85292abf8f1372cf97fa
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/2920
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
2013-03-29 20:10:14 +01:00
..
Config.in libpayload: Make whether or not there's an IO address space configurable 2013-03-13 23:02:05 +01:00
Makefile.inc libpayload: New CBFS to support multiple firmware media sources. 2013-02-12 11:34:20 +01:00
coreboot.c libpayload: add x86 ROM variable MTRR support 2013-03-29 20:10:14 +01:00
exec.S libpayload: rename i386 to x86 2012-12-14 22:29:17 +01:00
head.S libpayload: rename i386 to x86 2012-12-14 22:29:17 +01:00
libpayload.ldscript libpayload; put the ldscript into an arch-dependent directory path 2013-02-14 21:32:02 +01:00
main.c libpayload: rename i386 to x86 2012-12-14 22:29:17 +01:00
multiboot.c libpayload: rename i386 to x86 2012-12-14 22:29:17 +01:00
rom_media.c libpayload: New CBFS to support multiple firmware media sources. 2013-02-12 11:34:20 +01:00
string.c libpayload: rename i386 to x86 2012-12-14 22:29:17 +01:00
sysinfo.c libpayload: rename i386 to x86 2012-12-14 22:29:17 +01:00
timer.c libpayload: Generalize and redistribute timekeeping code 2013-03-14 04:53:33 +01:00
util.S libpayload: rename i386 to x86 2012-12-14 22:29:17 +01:00
virtual.c libpayload: rename i386 to x86 2012-12-14 22:29:17 +01:00