coreboot/src/lib
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
..
gnat
b64_decode.c
boot_device.c lib/boot_device: Add API for write protect a region 2019-01-21 13:25:46 +00:00
bootblock.c symbols.h: Add macro to define memlayout region symbols 2019-02-22 06:44:02 +00:00
bootmem.c symbols.h: Add macro to define memlayout region symbols 2019-02-22 06:44:02 +00:00
bootmode.c buildsystem: Promote rules.h to default include 2019-01-16 11:51:07 +00:00
cb.ads Hook up Kconfig Ada spec file 2019-02-06 16:20:35 +00:00
cbfs.c cbfs: Alert if something goes wrong in cbfs_boot_locate() 2018-12-07 11:34:54 +00:00
cbmem_common.c symbols.h: Add macro to define memlayout region symbols 2019-02-22 06:44:02 +00:00
cbmem_console.c symbols.h: Add macro to define memlayout region symbols 2019-02-22 06:44:02 +00:00
cbmem_stage_cache.c
compute_ip_checksum.c
coreboot_table.c Move compiler.h to commonlib 2018-10-08 16:57:27 +00:00
debug.c
decompressor.c
delay.c
device_tree.c device_tree/fit: Constify data structures 2018-08-24 11:38:28 +00:00
dimm_info_util.c src/*: normalize Google copyright headers 2018-09-28 07:13:00 +00:00
edid.c src: Remove duplicated round up function 2018-11-29 12:17:45 +00:00
edid_fill_fb.c
ext_stage_cache.c buildsystem: Promote rules.h to default include 2019-01-16 11:51:07 +00:00
fallback_boot.c Move compiler.h to commonlib 2018-10-08 16:57:27 +00:00
fit.c lib/fit: Normalize spaces in board names to dashes 2018-12-19 05:18:45 +00:00
fit_payload.c device_tree/fit: Constify data structures 2018-08-24 11:38:28 +00:00
fmap.c
gcc.c
gcov-glue.c
gcov-io.c
gcov-io.h
gcov-iov.h
generic_dump_spd.c
gpio.c Move compiler.h to commonlib 2018-10-08 16:57:27 +00:00
halt.c
hardwaremain.c lib/hardwaremain: Fix typo ACPI 2019-01-30 02:30:22 +00:00
hexdump.c
hexstrtobin.c
hw-time-timer.adb
imd.c Move compiler.h to commonlib 2018-10-08 16:57:27 +00:00
imd_cbmem.c buildsystem: Promote rules.h to default include 2019-01-16 11:51:07 +00:00
jpeg.c
jpeg.h
Kconfig reset: Provide new single-function reset API 2018-10-22 08:34:00 +00:00
libgcc.c riscv: Add initial support for 32bit boards 2019-02-13 04:49:14 +00:00
libgcov.c
list.c
lzma.c
lzmadecode.c lib/lzmadecode.c: : Avoid static analysis error for unused value 2018-08-14 23:24:58 +00:00
lzmadecode.h
Makefile.inc Hook up Kconfig Ada spec file 2019-02-06 16:20:35 +00:00
malloc.c
memchr.c
memcmp.c
memcpy.c
memmove.c
memrange.c
memset.c
nhlt.c lib/nhlt: Use common function to set NHLT version 2018-08-27 15:54:34 +00:00
primitive_memtest.c
prog_loaders.c selfload: check target memory type in selfload_check 2019-01-30 11:04:49 +00:00
prog_ops.c Move compiler.h to commonlib 2018-10-08 16:57:27 +00:00
program.ld
ramtest.c
reg_script.c src: Get rid of device_t 2019-01-04 12:11:18 +00:00
region_file.c src/lib: Fix typo 2018-08-09 15:56:42 +00:00
reset.c reset: Finalize move to new API 2018-10-31 15:29:42 +00:00
rmodule.c src: Remove unneeded include <lib.h> 2018-11-16 09:50:51 +00:00
rmodule.ld src: Fix typo 2018-08-10 21:25:53 +00:00
romstage_handoff.c buildsystem: Promote rules.h to default include 2019-01-16 11:51:07 +00:00
romstage_stack.c
rtc.c src/{ec,include,lib}: Use "foo *bar" instead of "foo* bar" 2018-07-09 09:28:35 +00:00
selfboot.c selfload: check target memory type in selfload_check 2019-01-30 11:04:49 +00:00
spd_bin.c
stack.c symbols.h: Add macro to define memlayout region symbols 2019-02-22 06:44:02 +00:00
string.c string: move strdup() & strconcat() to lib/string.c 2019-01-30 11:05:20 +00:00
thread.c
timer.c Move compiler.h to commonlib 2018-10-08 16:57:27 +00:00
timer_queue.c
timestamp.c symbols.h: Add macro to define memlayout region symbols 2019-02-22 06:44:02 +00:00
trace.c
ubsan.c complier.h: add __noreturn and use it in code base 2018-09-10 15:02:51 +00:00
version.c ACPI: Correct asl_compiler_revision value 2019-02-21 19:07:31 +00:00
wrdd.c Move compiler.h to commonlib 2018-10-08 16:57:27 +00:00