]> git.baikalelectronics.ru Git - arm-tf.git/commit
fix(debug): decouple "get_el_str()" from backtrace
authorManish Pandey <manish.pandey2@arm.com>
Tue, 1 Nov 2022 16:16:55 +0000 (16:16 +0000)
committerManish Pandey <manish.pandey2@arm.com>
Tue, 8 Nov 2022 10:10:19 +0000 (10:10 +0000)
commit0ae4a3a3f0cd841b83f2944dde9837ea67f08813
treeb8293895b86cc2042d2f5b712fe665f41501318c
parentd435238dc364f0c9f0e41661365f83d83899829d
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
common/backtrace/backtrace.c
include/common/debug.h
plat/common/aarch64/plat_common.c
plat/marvell/armada/a3k/common/a3700_ea.c