From f4be868be94bcbbf0c3a7059d1ba20567144de37 Mon Sep 17 00:00:00 2001 From: Govindraj Raja Date: Thu, 1 Dec 2022 16:47:28 +0000 Subject: [PATCH] refactor(aarch64): cleanup HANDLE_EA_EL3_FIRST_NS usage Remove usage of HANDLE_EA_EL3_FIRST_NS in plat_default_ea_handler Change-Id: I2bf4788960d20a090d66cf39c7bbbdea1d3243ca Signed-off-by: Govindraj Raja --- plat/common/aarch64/plat_common.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/plat/common/aarch64/plat_common.c b/plat/common/aarch64/plat_common.c index 8ce1d6c76..3495323e3 100644 --- a/plat/common/aarch64/plat_common.c +++ b/plat/common/aarch64/plat_common.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2022, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2014-2023, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -77,7 +77,7 @@ const char *get_el_str(unsigned int el) return "EL1"; } -/* RAS functions common to AArch64 ARM platforms */ +/* Handler for External Aborts from lower EL including RAS errors */ void plat_default_ea_handler(unsigned int ea_reason, uint64_t syndrome, void *cookie, void *handle, uint64_t flags) { @@ -93,12 +93,6 @@ void plat_default_ea_handler(unsigned int ea_reason, uint64_t syndrome, void *co ERROR("Unhandled External Abort received on 0x%lx from %s\n", read_mpidr_el1(), get_el_str(level)); ERROR("exception reason=%u syndrome=0x%" PRIx64 "\n", ea_reason, syndrome); -#if HANDLE_EA_EL3_FIRST_NS - /* Skip backtrace for lower EL */ - if (level != MODE_EL3) { - console_flush(); - do_panic(); - } -#endif + panic(); } -- 2.39.5