summaryrefslogtreecommitdiff
path: root/src/arch/arm64
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/arm64')
-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 0bd0835aa8..ac09934019 100644
--- a/src/arch/arm64/include/arch/memlayout.h
+++ b/src/arch/arm64/include/arch/memlayout.h
@@ -22,6 +22,11 @@
REGION(ttb, addr, size, 4K) \
_ = ASSERT(size % 4K == 0, "TTB size must be divisible by 4K!");
+#define DMA_COHERENT(addr, size) \
+ REGION(dma_coherent, addr, size, 4K) \
+ _ = ASSERT(size % 4K == 0, \
+ "DMA buffer should be multiple of smallest page size (4K)!");
+
/* ARM64 stacks need 16-byte alignment. */
#define STACK(addr, size) \
REGION(stack, addr, size, 16) \