coreboot-kgpe-d16/tests/include
Julius Werner 82d16b150c memlayout: Store region sizes as separate symbols
This patch changes the memlayout macro infrastructure so that the size
of a region "xxx" (i.e. the distance between the symbols _xxx and _exxx)
is stored in a separate _xxx_size symbol. This has the advantage that
region sizes can be used inside static initializers, and also saves an
extra subtraction at runtime. Since linker symbols can only be treated
as addresses (not as raw integers) by C, retain the REGION_SIZE()
accessor macro to hide the necessary typecast.

Signed-off-by: Julius Werner <jwerner@chromium.org>
Change-Id: Ifd89708ca9bd3937d0db7308959231106a6aa373
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49332
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2021-02-19 08:39:26 +00:00
..
lib edist-test: Fix _Static_assert missing message string 2020-12-02 10:38:25 +00:00
stubs tests: Add lib/timestamp-test test case 2020-11-09 07:34:07 +00:00
tests memlayout: Store region sizes as separate symbols 2021-02-19 08:39:26 +00:00
static.h device: Use __pci_0_00_0_config in config_of_soc() 2021-01-12 05:22:40 +00:00