mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-24 13:55:56 +00:00
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:
parent
d1c85da8ef
commit
2331a34f78
1 changed files with 7 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
/* ----------------------------------------------
|
/* ----------------------------------------------
|
||||||
|
|
Loading…
Add table
Reference in a new issue