diff options
author | Yann Gautier <yann.gautier@foss.st.com> | 2022-03-07 16:09:23 +0100 |
---|---|---|
committer | Yann Gautier <yann.gautier@st.com> | 2022-09-23 15:17:43 +0200 |
commit | 484e846a03a1af5f88e2e28835b6349cc5977935 (patch) | |
tree | fd39cf0469275e0cc010183c035a2fd57589d88c /plat/st | |
parent | d99998f76ed2e8676be25e31e9479a90c16c7098 (diff) | |
download | arm-trusted-firmware-484e846a03a1af5f88e2e28835b6349cc5977935.tar.gz |
fix(stm32mp1): enable crash console in FIQ handler
When a FIQ occurs and is trapped by SP_min, it is an unrecoverable
error. As kernel may have switched the UART console off, we should
re-enable it with plat_crash_console_init() for those failing states.
Signed-off-by: Yann Gautier <yann.gautier@st.com>
Change-Id: Ib02e1271b6213f8e383a062b74494abf8826188f
Diffstat (limited to 'plat/st')
-rw-r--r-- | plat/st/stm32mp1/sp_min/sp_min_setup.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plat/st/stm32mp1/sp_min/sp_min_setup.c b/plat/st/stm32mp1/sp_min/sp_min_setup.c index 81067951d..b87a4279b 100644 --- a/plat/st/stm32mp1/sp_min/sp_min_setup.c +++ b/plat/st/stm32mp1/sp_min/sp_min_setup.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2021, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2015-2022, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -40,6 +40,8 @@ static entry_point_info_t bl33_image_ep_info; ******************************************************************************/ void sp_min_plat_fiq_handler(uint32_t id) { + (void)plat_crash_console_init(); + switch (id & INT_ID_MASK) { case STM32MP1_IRQ_TZC400: tzc400_init(STM32MP1_TZC_BASE); @@ -51,7 +53,7 @@ void sp_min_plat_fiq_handler(uint32_t id) panic(); break; default: - ERROR("SECURE IT handler not define for it : %u", id); + ERROR("SECURE IT handler not define for it : %u\n", id); break; } } |