File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
include/zephyr/arch/arm/cortex_a_r/scripts Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 2626#endif
2727#define RAMABLE_REGION RAM
2828
29+ /* Region of the irq vectors and boot-vector SP/PC */
30+ #if defined(CONFIG_ROMSTART_RELOCATION_ROM)
31+ #define ROMSTART_ADDR CONFIG_ROMSTART_REGION_ADDRESS
32+ #define ROMSTART_SIZE (CONFIG_ROMSTART_REGION_SIZE * 1K )
33+ #else
34+ #define ROMSTART_REGION ROMABLE_REGION
35+ #endif
36+
2937#if !defined(CONFIG_XIP) && (CONFIG_FLASH_SIZE == 0)
3038 #define ROM_ADDR RAM_ADDR
3139#else
@@ -85,6 +93,9 @@ _region_min_align = 4;
8593
8694MEMORY
8795{
96+ #if defined(CONFIG_ROMSTART_RELOCATION_ROM)
97+ ROMSTART_REGION (rx) : ORIGIN = ROMSTART_ADDR, LENGTH = ROMSTART_SIZE
98+ #endif
8899 FLASH (rx) : ORIGIN = ROM_ADDR, LENGTH = ROM_SIZE
89100 RAM (wx) : ORIGIN = RAM_ADDR, LENGTH = RAM_SIZE
90101 LINKER_DT_REGIONS ()
@@ -133,7 +144,7 @@ SECTIONS
133144 */
134145#include < snippets-rom-start.ld>
135146
136- } GROUP_LINK_IN (ROMABLE_REGION )
147+ } GROUP_LINK_IN (ROMSTART_REGION )
137148
138149#ifdef CONFIG_CODE_DATA_RELOCATION
139150
You can’t perform that action at this time.
0 commit comments