x86: add rom cache variable MTRR index to tables
commitbc07f5d93552640793254ce003937ec646120a21
authorAaron Durbin <adurbin@chromium.org>
Tue, 26 Mar 2013 18:09:39 +0000 (26 13:09 -0500)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Fri, 29 Mar 2013 19:09:36 +0000 (29 20:09 +0100)
tree091f2189c38629d64579c5864220f8b2f2039db0
parentf567f16af4c3cbfcadc3bc5c44b569a592829262
x86: add rom cache variable MTRR index to tables

Downstream payloads may need to take advantage of caching the
ROM for performance reasons. Add the ability to communicate the
variable range MTRR index to use to perform the caching enablement.

An example usage implementation would be to obtain the variable MTRR
index that covers the ROM from the coreboot tables. 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: I4d486cfb986629247ab2da7818486973c6720ef5
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/2919
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
src/cpu/x86/mtrr/mtrr.c
src/include/boot/coreboot_tables.h
src/include/cpu/x86/mtrr.h
src/lib/coreboot_table.c