diff options
author | Manish Pandey <manish.pandey2@arm.com> | 2022-11-01 16:16:55 +0000 |
---|---|---|
committer | Manish Pandey <manish.pandey2@arm.com> | 2022-11-08 10:10:19 +0000 |
commit | 0ae4a3a3f0cd841b83f2944dde9837ea67f08813 (patch) | |
tree | b8293895b86cc2042d2f5b712fe665f41501318c /plat/marvell/armada | |
parent | d435238dc364f0c9f0e41661365f83d83899829d (diff) | |
download | arm-trusted-firmware-0ae4a3a3f0cd841b83f2944dde9837ea67f08813.tar.gz |
fix(debug): decouple "get_el_str()" from backtrace
get_el_str() was implemented under ENABLE_BACKTRACE macro but being
used at generic places too, this causes multiple definition of this
function.
Remove duplicate definition of this function and move it out of
backtrace scope. Also, this patch fixes a small bug where in default
case S-EL1 is returned which ideally should be EL1, as there is no
notion of security state in EL string.
Signed-off-by: Manish Pandey <manish.pandey2@arm.com>
Change-Id: Ib186ea03b776e2478eff556065449ebd478c3538
Diffstat (limited to 'plat/marvell/armada')
-rw-r--r-- | plat/marvell/armada/a3k/common/a3700_ea.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/plat/marvell/armada/a3k/common/a3700_ea.c b/plat/marvell/armada/a3k/common/a3700_ea.c index bc12845a5..fd4e3b247 100644 --- a/plat/marvell/armada/a3k/common/a3700_ea.c +++ b/plat/marvell/armada/a3k/common/a3700_ea.c @@ -16,18 +16,6 @@ #define A53_SERR_INT_AXI_SLVERR_ON_EXTERNAL_ACCESS 0xbf000002 -#if !ENABLE_BACKTRACE -static const char *get_el_str(unsigned int el) -{ - if (el == MODE_EL3) { - return "EL3"; - } else if (el == MODE_EL2) { - return "EL2"; - } - return "S-EL1"; -} -#endif /* !ENABLE_BACKTRACE */ - /* * This source file with custom plat_ea_handler function is compiled only when * building TF-A with compile option HANDLE_EA_EL3_FIRST=1 |