From e6f4afd661172cfc45129d4515efee18387776e8 Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Tue, 16 Jul 2024 23:02:09 +0300 Subject: [PATCH] misc: Fix DMA memory alignment. --- src/omv/common/common.ld.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/omv/common/common.ld.S b/src/omv/common/common.ld.S index 8041d39ea..78faabd18 100644 --- a/src/omv/common/common.ld.S +++ b/src/omv/common/common.ld.S @@ -21,7 +21,7 @@ /* Define a new DMA buffer region. */ #define OMV_DMA_MEMORY_NEW(X) \ - .dma.memory##X (NOLOAD) : ALIGN(16) \ + .dma.memory##X (NOLOAD) : ALIGN(32) \ { \ *(.d##X##_dma_buffer) \ . = OMV_ALIGN_DMA_SECTION(.dma.memory##X); \ @@ -171,7 +171,7 @@ PROVIDE(__stack = __StackTop); #endif /* Misc DMA buffers section */ -.dma.memory0 (NOLOAD) : ALIGN(16) +.dma.memory0 (NOLOAD) : ALIGN(32) { /* Image line buffer. */ #if defined(OMV_LINE_BUF_SIZE)