From 75c75b50ee87ceae36acd7e37ccb5ffe8add0f2e Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Fri, 19 Jul 2024 11:13:29 +0300 Subject: [PATCH] misc: Update common linker script. Align core and shm to 32. --- src/omv/common/common.ld.S | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/omv/common/common.ld.S b/src/omv/common/common.ld.S index 78faabd18..e9b9a36c8 100644 --- a/src/omv/common/common.ld.S +++ b/src/omv/common/common.ld.S @@ -123,22 +123,23 @@ PROVIDE(__stack = __StackTop); /* Open-AMP Shared Memory Region */ #if defined(OMV_OPENAMP_MEMORY) -.openamp_memory (NOLOAD) : ALIGN(4) +.openamp_memory (NOLOAD) : ALIGN(32) { _openamp_shm_region_start = .; . = . + OMV_OPENAMP_SIZE; _openamp_shm_region_end = .; + . = OMV_ALIGN_DMA_SECTION(.openamp_memory); } >OMV_OPENAMP_MEMORY #endif /* Memory for the second core */ #if defined(OMV_CORE1_MEMORY) -.core1_memory (NOLOAD) : ALIGN(4) +.core1_memory (NOLOAD) : ALIGN(32) { _core1_memory_start = .; . = . + OMV_CORE1_SIZE; _core1_memory_end = .; - _core1_memory_end = .; + . = OMV_ALIGN_DMA_SECTION(.core1_memory); } >OMV_CORE1_MEMORY #endif