Commit d5d4d579 authored by Simon Maurer's avatar Simon Maurer Committed by Benjamin Cabé
Browse files

arch: arm: cortex_a_r/cortex_m: fix text region overlap with ram in !XIP

ROM_ADDR and RAM_ADDR is same when CONFIG_XIP is not defined.
If we reset the location for RAMABLE region to RAM_ADDR text region,
which is part of rom, overlaps with initial ram region.
This commit tries to avoid this incorrect behaviour for cortex_a
and cortex_m

Signed-off-by: default avatarSimon Maurer <mail@maurer.systems>
parent fa45bebc
Loading
Loading
Loading
Loading
+3 −0
Changes for include/zephyr/arch/arm/cortex_a_r/scripts/linker.ld: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -257,7 +257,10 @@ SECTIONS

    GROUP_START(RAMABLE_REGION)

#ifdef CONFIG_XIP
    . = RAM_ADDR;
#endif

    /* Align the start of image RAM with the
     * minimum granularity required by MPU.
     */
+3 −0
Changes for include/zephyr/arch/arm/cortex_m/scripts/linker.ld: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -257,7 +257,10 @@ SECTIONS

    GROUP_START(RAMABLE_REGION)

#ifdef CONFIG_XIP
	. = RAM_ADDR;
#endif

	/* Align the start of image RAM with the
	 * minimum granularity required by MPU.
	 */