riscv: add ARCH_DMA_MINALIGN support

Introduce ARCH_DMA_MINALIGN to riscv arch.

Signed-off-by: Xianting Tian <xianting.tian@linux.alibaba.com>
This commit is contained in:
Xianting Tian 2021-08-07 22:55:37 +08:00 committed by Emil Renner Berthing
parent a3a944bf23
commit 917c37e86b

View file

@ -11,6 +11,8 @@
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
#define ARCH_DMA_MINALIGN L1_CACHE_BYTES
/*
* RISC-V requires the stack pointer to be 16-byte aligned, so ensure that
* the flat loader aligns it accordingly.