summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/arm64/include/arch/memlayout.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/arch/arm64/include/arch/memlayout.h b/src/arch/arm64/include/arch/memlayout.h
index ac09934019..7fce9aa2f8 100644
--- a/src/arch/arm64/include/arch/memlayout.h
+++ b/src/arch/arm64/include/arch/memlayout.h
@@ -27,6 +27,11 @@
_ = ASSERT(size % 4K == 0, \
"DMA buffer should be multiple of smallest page size (4K)!");
+#define FRAMEBUFFER(addr, size) \
+ REGION(framebuffer, addr, size, 1M) \
+ _ = ASSERT(size % 1M == 0, \
+ "Framebuffer must fit exactly in 1M!");
+
/* ARM64 stacks need 16-byte alignment. */
#define STACK(addr, size) \
REGION(stack, addr, size, 16) \