Yu-Ping Wu has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/86115?usp=email )
Change subject: symbols: Add REGION() and REGION_END() macros ......................................................................
symbols: Add REGION() and REGION_END() macros
Define the REGION() and REGION_END() macros for platform code to reference to the region start and end addresses more easily.
Note that memlayout.h also defines macros of the same name, but that's fine, as that header is supposed to be included from memlayout.ld only.
Change-Id: Ie80275a74a4015e72eaab204982b915e4435a339 Signed-off-by: Yu-Ping Wu yupingso@chromium.org --- M src/include/symbols.h 1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/15/86115/1
diff --git a/src/include/symbols.h b/src/include/symbols.h index 36e4c10..622c5c8 100644 --- a/src/include/symbols.h +++ b/src/include/symbols.h @@ -7,6 +7,8 @@
extern u8 _dram[];
+#define REGION(name) ((uintptr_t)_##name) +#define REGION_END(name) ((uintptr_t)_e##name) #define REGION_SIZE(name) ((size_t)_##name##_size)
#define DECLARE_REGION(name) \