File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,14 @@ config PLATFORM_SPECIFIC_INIT
174174
175175 This option is deprecated, use SOC_RESET_HOOK instead.
176176
177+ config PLATFORM_SPECIFIC_PRE_STACK_INIT
178+ bool "Platform (SOC) specific startup hook executed before the stack is initialised"
179+ help
180+ The platform specific initialization code (z_arm_platform_pre_stack_init) is
181+ executed in the early startup code right after the registers are set to known
182+ values and before stack is set up. Note that this code cannot use the stack unlike
183+ z_arm_platform_init.
184+
177185config FAULT_DUMP
178186 int "Fault dump level"
179187 default 2
Original file line number Diff line number Diff line change @@ -203,6 +203,10 @@ EL1_Reset_Handler:
203203
204204#endif / * CONFIG_DCLS * /
205205
206+ #if defined(CONFIG_PLATFORM_SPECIFIC_PRE_STACK_INIT)
207+ bl z_arm_platform_pre_stack_init
208+ #endif
209+
206210#if defined(CONFIG_CPU_CORTEX_R52_CACHE_SEGREGATION)
207211 ldr r0 , =IMP_CSCTLR(CONFIG_CPU_CORTEX_R52_ICACHE_FLASH_WAY ,
208212 CONFIG_CPU_CORTEX_R52_DCACHE_FLASH_WAY)
You can’t perform that action at this time.
0 commit comments