Home
last modified time | relevance | path

Searched hist:"01 ef3c7903e8a54f24a9245feca4644941b6bc62" (Results 1 – 1 of 1) sorted by relevance

/optee_os/core/kernel/
H A Dpanic.c01ef3c7903e8a54f24a9245feca4644941b6bc62 Fri Dec 01 10:55:54 UTC 2023 Jens Wiklander <jens.wiklander@linaro.org> core: panic(): avoid panic in panic

When configured with CFG_HALT_CORES_ON_PANIC=y panic() sends a secure
SGI to all other CPUs to trap all of them, but if interrupts haven't
been configured yet it triggers a cascade of panics. So add a check to
see if interrupts are configured before trying to trap the other CPUs.

Fixes: 2b719df0fc1c ("core: interrupt: halt other cores when one is panicking")
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com>
Acked-by: Gatien Chevallier <gatien.chevallier@foss.st.com>