coreboot-kgpe-d16/src/include/cpu/x86
Aaron Durbin 716738a6b8 x86: add cache-as-ram migration option
There are some boards that do a significant amount of
work after cache-as-ram is torn down but before ramstage
is loaded. For example, using vboot to verify the ramstage
is one such operation. However, there are pieces of code
that are executed that reference global variables that
are linked in the cache-as-ram region. If those variables
are referenced after cache-as-ram is torn down then the
values observed will most likely be incorrect.

Therefore provide a Kconfig option to select cache-as-ram
migration to memory using cbmem. This option is named
CAR_MIGRATION. When enabled, the address of cache-as-ram
variables may be obtained dynamically. Additionally,
when cache-as-ram migration occurs the cache-as-ram
data region for global variables is copied into cbmem.
There are also automatic callbacks for other modules
to perform their own migration, if necessary.

Change-Id: I2e77219647c2bd2b1aa845b262be3b2543f1fcb7
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/3232
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
2013-05-16 01:29:50 +02:00
..
bist.h We call this cache as ram everywhere, so let's call it the same in Kconfig 2010-08-30 17:53:13 +00:00
cache.h Replace cache control magic numbers with symbols 2012-04-25 16:27:07 +02:00
car.h x86: add cache-as-ram migration option 2013-05-16 01:29:50 +02:00
lapic.h Drop prototype guarding for romcc 2013-05-10 00:06:46 +02:00
lapic_def.h Unify Local APIC address definitions 2012-03-08 15:39:05 +01:00
msr.h remove trailing whitespace 2011-11-01 19:07:45 +01:00
mtrr.h mtrr: add rom caching comment about hyperthreads 2013-04-05 21:57:38 +02:00
multiboot.h GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
name.h Factor out fill_processor_name() and strcpy() functions. 2010-09-29 09:54:16 +00:00
pae.h Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
post_code.h Make early x86 POST codes written to IO port optional 2013-05-11 05:19:31 +02:00
smm.h x86: use asmlinkage macro for smm_handler_t 2013-05-08 16:17:27 +02:00
stack.h Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
tsc.h x86: add TSC_CONSTANT_RATE option 2013-05-07 18:35:04 +02:00