coreboot/src/cpu
Julius Werner 7e0dea6317 symbols.h: Add macro to define memlayout region symbols
When <symbols.h> was first introduced, it only declared a handful of
regions and we didn't expect that too many architectures and platforms
would need to add their own later. However, our amount of platforms has
greatly expanded since, and with them the need for more special memory
regions. The amount of code duplication is starting to get unsightly,
and platforms keep defining their own <soc/symbols.h> files that need
this as well.

This patch adds another macro to cut down the definition boilerplate.
Unfortunately, macros cannot define other macros when they're called, so
referring to region sizes as _name_size doesn't work anymore. This patch
replaces the scheme with REGION_SIZE(name).

Not touching the regions in the x86-specific <arch/symbols.h> yet since
they don't follow the standard _region/_eregion naming scheme. They can
be converted later if desired.

Change-Id: I44727d77d1de75882c72a94f29bd7e2c27741dd8
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/c/31539
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2019-02-22 06:44:02 +00:00
..
allwinner console: Change BOOTBLOCK_CONSOLE default to y 2019-01-14 12:13:55 +00:00
amd AGESA: Drop CONFIG_CBB and CONFIG_CDB 2019-01-14 19:08:34 +00:00
armltd
intel cpu/intel/common: Add newline to set_feature_ctrl_lock() output 2019-02-21 19:30:56 +00:00
qemu-power8 arch/power8: Rename to ppc64 2018-11-30 20:02:17 +00:00
qemu-x86 bootblock: Move function prototype 2018-12-30 11:32:08 +00:00
ti console: Change BOOTBLOCK_CONSOLE default to y 2019-01-14 12:13:55 +00:00
via src: Add required space after "switch" 2018-11-19 08:17:06 +00:00
x86 symbols.h: Add macro to define memlayout region symbols 2019-02-22 06:44:02 +00:00
Kconfig arch/x86: Drop Kconfig AP_SIPI_VECTOR 2019-01-13 08:37:01 +00:00
Makefile.inc Untangle CBFS microcode updates 2019-01-10 09:24:02 +00:00