summaryrefslogtreecommitdiffstats
path: root/src/arch
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/riscv/include/arch/memlayout.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/arch/riscv/include/arch/memlayout.h b/src/arch/riscv/include/arch/memlayout.h
index 3a77bd527b4e..0c539d27a594 100644
--- a/src/arch/riscv/include/arch/memlayout.h
+++ b/src/arch/riscv/include/arch/memlayout.h
@@ -21,6 +21,11 @@
ALIAS_REGION(mem_stack, stack)
#endif
+#define OPENSBI(addr, size) \
+ _ = ASSERT(addr == CONFIG_OPENSBI_TEXT_START, \
+ "opensbi linker address must equal CONFIG_OPENSBI_TEXT_START"); \
+ REGION(opensbi, addr, size, 4K)
+
/* TODO: Need to add DMA_COHERENT region like on ARM? */
#endif /* __ARCH_MEMLAYOUT_H */