aboutsummaryrefslogtreecommitdiff
path: root/core/arch/arm/plat-hisilicon
diff options
context:
space:
mode:
authorJerome Forissier <jerome@forissier.org>2020-09-03 14:37:31 +0200
committerJérôme Forissier <jerome@forissier.org>2020-09-04 14:25:44 +0200
commit3513f961cda064f90d10f7de72af6330427a2013 (patch)
treed034d13b91a2e19cfe1954618e26629426f5721d /core/arch/arm/plat-hisilicon
parent827be46c173f31c57006af70ca3a15a5b1a7fba3 (diff)
arm32: fold UNWIND(.fnstart/.fnend) into the FUNC macros
This change applies to arm32 assembler sources. Instead of using UNWIND(.fnstart) after FUNC or LOCAL_FUNC and UNWIND(.fnend) before END_FUNC, let's fold these statements into the FUNC macros. The .fnstart/.fnend directives mark the start and end of a function with an unwind table entry (.ARM.exidx) and therefore a function without them has no entry and cannot be unwound. This means that a stack dump (on abort or panic) would stop when reaching such a function. As a result of this patch, a small number of functions now have an entry in the unwind table when they had none before (the functions which were using FUNC or LOCAL_FUNC but had no .fnstart/.fnend). It was almost always a bug and this pacth only increases the size of the .ARM.exidx section by a few bytes (tested on QEMU). Signed-off-by: Jerome Forissier <jerome@forissier.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
Diffstat (limited to 'core/arch/arm/plat-hisilicon')
-rw-r--r--core/arch/arm/plat-hisilicon/hi3519av100_plat_init.S2
1 files changed, 0 insertions, 2 deletions
diff --git a/core/arch/arm/plat-hisilicon/hi3519av100_plat_init.S b/core/arch/arm/plat-hisilicon/hi3519av100_plat_init.S
index 8857a01d..bf116453 100644
--- a/core/arch/arm/plat-hisilicon/hi3519av100_plat_init.S
+++ b/core/arch/arm/plat-hisilicon/hi3519av100_plat_init.S
@@ -33,7 +33,6 @@
* Trap CPU in case of error.
*/
FUNC plat_cpu_reset_early , :
-UNWIND( .fnstart)
/*
* Write the CPU Extended Control Register
* Set the SMPEN bit, this Cortex-A53 core's register
@@ -82,5 +81,4 @@ UNWIND( .fnstart)
str r1, [r0]
out:
bx lr
-UNWIND( .fnend)
END_FUNC plat_cpu_reset_early