diff options
author | Alexei Fedorov <Alexei.Fedorov@arm.com> | 2020-02-06 17:11:03 +0000 |
---|---|---|
committer | Alexei Fedorov <Alexei.Fedorov@arm.com> | 2020-02-07 17:00:34 +0000 |
commit | 68c76088d3b79753a15dc7ef9e296cd6fa9150aa (patch) | |
tree | a94b445887a5da2d4947f54ef6d8e90cc8769734 /bl31 | |
parent | 235c8174ffe55bfc1108c02e0b41ca9916428f21 (diff) | |
download | platform_external_arm-trusted-firmware-68c76088d3b79753a15dc7ef9e296cd6fa9150aa.tar.gz platform_external_arm-trusted-firmware-68c76088d3b79753a15dc7ef9e296cd6fa9150aa.tar.bz2 platform_external_arm-trusted-firmware-68c76088d3b79753a15dc7ef9e296cd6fa9150aa.zip |
Make PAC demangling more generic
At the moment, address demangling is only used by the backtrace
functionality. However, at some point, other parts of the TF-A
codebase may want to use it.
The 'demangle_address' function is replaced with a single XPACI
instruction which is also added in 'do_crash_reporting()'.
Signed-off-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
Change-Id: I4424dcd54d5bf0a5f9b2a0a84c4e565eec7329ec
Diffstat (limited to 'bl31')
-rw-r--r-- | bl31/aarch64/crash_reporting.S | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bl31/aarch64/crash_reporting.S b/bl31/aarch64/crash_reporting.S index f2c12961d..97db2a167 100644 --- a/bl31/aarch64/crash_reporting.S +++ b/bl31/aarch64/crash_reporting.S @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2019, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2014-2020, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -244,6 +244,11 @@ func do_crash_reporting mrs x0, tpidr_el3 /* report x30 first from the crash buf */ ldr x4, [x0, #REGSZ * 7] + +#if ENABLE_PAUTH + /* Demangle address */ + xpaci x4 +#endif bl asm_print_hex bl asm_print_newline /* Load the crash buf address */ |