coreboot-kgpe-d16/src/soc/qualcomm/ipq40xx
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
..
include/soc soc/qualcomm: Drop unneeded empty lines 2020-09-21 16:27:16 +00:00
blobs_init.c cbfs: Simplify load/map API names, remove type arguments 2020-12-02 22:13:17 +00:00
blsp.c treewide: Replace BSD-3-Clause and ISC headers with SPDX headers 2020-05-11 17:12:16 +00:00
cbmem.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
clock.c treewide: Replace BSD-3-Clause and ISC headers with SPDX headers 2020-05-11 17:12:16 +00:00
gpio.c soc/qualcomm: Drop unneeded empty lines 2020-09-21 16:27:16 +00:00
i2c.c treewide: Replace BSD-3-Clause and ISC headers with SPDX headers 2020-05-11 17:12:16 +00:00
Kconfig treewide: Add Kconfig variable MEMLAYOUT_LD_FILE 2020-06-13 06:49:23 +00:00
lcc.c treewide: Replace BSD-3-Clause and ISC headers with SPDX headers 2020-05-11 17:12:16 +00:00
Makefile.inc src: Remove leading blank lines from SPDX header 2020-05-18 07:00:27 +00:00
mbn_header.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
memlayout.ld memlayout: Store region sizes as separate symbols 2021-02-19 08:39:26 +00:00
qup.c treewide: Replace BSD-3-Clause and ISC headers with SPDX headers 2020-05-11 17:12:16 +00:00
soc.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
spi.c treewide: Replace BSD-3-Clause and ISC headers with SPDX headers 2020-05-11 17:12:16 +00:00
timer.c treewide: Replace BSD-3-Clause and ISC headers with SPDX headers 2020-05-11 17:12:16 +00:00
tz_wrapper.S treewide: replace GPLv2 long form headers with SPDX header 2020-05-06 22:20:57 +00:00
uart.c include/console/uart: make index parameter unsigned 2020-09-12 14:59:33 +00:00
usb.c soc/qualcomm: Drop unneeded empty lines 2020-09-21 16:27:16 +00:00