coreboot/src/soc
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
..
amd ACPI: Correct asl_compiler_revision value 2019-02-21 19:07:31 +00:00
cavium symbols.h: Add macro to define memlayout region symbols 2019-02-22 06:44:02 +00:00
imgtec symbols.h: Add macro to define memlayout region symbols 2019-02-22 06:44:02 +00:00
intel soc/intel/cannonlake: Add whitespace proper in CPU/MCH/IGD name 2019-02-22 04:17:27 +00:00
mediatek symbols.h: Add macro to define memlayout region symbols 2019-02-22 06:44:02 +00:00
nvidia symbols.h: Add macro to define memlayout region symbols 2019-02-22 06:44:02 +00:00
qualcomm symbols.h: Add macro to define memlayout region symbols 2019-02-22 06:44:02 +00:00
rockchip symbols.h: Add macro to define memlayout region symbols 2019-02-22 06:44:02 +00:00
samsung symbols.h: Add macro to define memlayout region symbols 2019-02-22 06:44:02 +00:00
sifive riscv: ARCH_RISCV_RV{32,64} selects ARCH_RISCV 2019-01-24 14:21:01 +00:00
ucb riscv: Add initial support for 32bit boards 2019-02-13 04:49:14 +00:00