feat(stm32mp2): put back core 1 in wfi after debugger's halt

The core 1 is put in wfi for pen holding. If a debugger halts the
core, it causes the core to exit from wfi.

Let the core to jump back in wfi when the debugger resumes the
core's execution.

Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
Change-Id: I9b5607b05cdcde905dc4047af8d6f1292d53d701
This commit is contained in:
Antonio Borneo 2023-10-13 11:46:57 +02:00 committed by Yann Gautier
parent d1c85da8ef
commit 2331a34f78

View file

@ -33,9 +33,14 @@ endfunc platform_mem_init
*/ */
func plat_secondary_cold_boot_setup func plat_secondary_cold_boot_setup
dsb sy dsb sy
1:
wfi wfi
/* This shouldn't be reached */ /*
b . * This shouldn't be reached, but when a debugger halts the
* secondary core it causes exit from wfi.
* Put back the core in wfi.
*/
b 1b
endfunc plat_secondary_cold_boot_setup endfunc plat_secondary_cold_boot_setup
/* ---------------------------------------------- /* ----------------------------------------------