coreboot-kgpe-d16/src/cpu/x86
Kyösti Mälkki 107f72e674 Re-declare CACHE_ROM_SIZE as aligned ROM_SIZE for MTRR
This change allows Kconfig options ROM_SIZE and CBFS_SIZE to be
set with values that are not power of 2. The region programmed
as WB cacheable will include all of ROM_SIZE.

Side-effects to consider:

Memory region below flash may be tagged WRPROT cacheable. As an
example, with ROM_SIZE of 12 MB, CACHE_ROM_SIZE would be 16 MB.
Since this can overlap CAR, we add an explicit test and fail
on compile should this happen. To work around this problem, one
needs to use CACHE_ROM_SIZE_OVERRIDE in the mainboard Kconfig and
define a smaller region for WB cache.

With this change flash regions outside CBFS are also tagged WRPROT
cacheable. This covers IFD and ME and sections ChromeOS may use.

Change-Id: I5e577900ff7e91606bef6d80033caaed721ce4bf
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/4625
Tested-by: build bot (Jenkins)
Reviewed-by: Vladimir Serbinenko <phcoder@gmail.com>
2014-01-15 15:26:48 +01:00
..
16bit Revert wbind added to the reset_vector 2012-04-20 09:09:42 +02:00
32bit Remove whitespace. 2012-02-17 19:04:31 +01:00
cache post code: Replaced hard-coded post code with macro 2012-01-23 22:50:56 +01:00
lapic Don't wait on 2065x 2013-11-22 22:35:58 +01:00
mtrr Re-declare CACHE_ROM_SIZE as aligned ROM_SIZE for MTRR 2014-01-15 15:26:48 +01:00
name GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
pae Revert "Use broadcast SIPI to startup siblings" 2012-07-31 06:46:02 +02:00
smm Update SMM for FSP systems 2013-12-04 19:35:34 +01:00
tsc x86: add thread support 2013-05-14 05:24:18 +02:00
car.c Rename cpu/x86/car.h to arch/early_variables.h 2013-10-13 12:47:05 +02:00
fpu_enable.inc GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
Kconfig CBMEM: Always select CAR_MIGRATION 2013-09-21 06:34:55 +02:00
Makefile.inc Revert "CBMEM: Always have early initialisation" 2013-10-14 17:16:22 +02:00
sse_enable.inc GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00