aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Nino Diaz <antonio.ninodiaz@arm.com>2018-11-22 17:36:29 +0000
committerSandrine Bailleux <sandrine.bailleux@arm.com>2018-11-26 15:09:49 +0000
commitffe9da6050919bf068858aac723b20d814dda574 (patch)
tree718422e173ec49041f2d1567f1ceedc983825f06
parentec58849b6d64f39f5009d8092aa2e8ca9a76432a (diff)
downloadtf-a-tests-ffe9da6050919bf068858aac723b20d814dda574.tar.gz
Remove unused AArch64 assembly helpers
Change-Id: I55a567014023d593ec96dd9eff71bfca01db9c61 Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
-rw-r--r--include/lib/aarch64/arch_helpers.h5
-rw-r--r--lib/aarch64/misc_helpers.S26
2 files changed, 0 insertions, 31 deletions
diff --git a/include/lib/aarch64/arch_helpers.h b/include/lib/aarch64/arch_helpers.h
index 59aae0283..515a4ba20 100644
--- a/include/lib/aarch64/arch_helpers.h
+++ b/include/lib/aarch64/arch_helpers.h
@@ -281,11 +281,6 @@ static inline void disable_debug_exceptions(void)
isb();
}
-uint32_t get_afflvl_shift(uint32_t);
-uint32_t mpidr_mask_lower_afflvls(uint64_t, uint32_t);
-
-void __dead2 eret(uint64_t x0, uint64_t x1, uint64_t x2, uint64_t x3,
- uint64_t x4, uint64_t x5, uint64_t x6, uint64_t x7);
void __dead2 smc(uint64_t x0, uint64_t x1, uint64_t x2, uint64_t x3,
uint64_t x4, uint64_t x5, uint64_t x6, uint64_t x7);
diff --git a/lib/aarch64/misc_helpers.S b/lib/aarch64/misc_helpers.S
index 6acaa8689..7c9da92af 100644
--- a/lib/aarch64/misc_helpers.S
+++ b/lib/aarch64/misc_helpers.S
@@ -8,9 +8,6 @@
#include <asm_macros.S>
#include <assert_macros.S>
- .globl get_afflvl_shift
- .globl mpidr_mask_lower_afflvls
- .globl eret
.globl smc
.globl zeromem16
@@ -19,29 +16,6 @@
.globl disable_mmu
.globl disable_mmu_icache
-func get_afflvl_shift
- cmp x0, #3
- cinc x0, x0, eq
- mov x1, #MPIDR_AFFLVL_SHIFT
- lsl x0, x0, x1
- ret
-endfunc get_afflvl_shift
-
-func mpidr_mask_lower_afflvls
- cmp x1, #3
- cinc x1, x1, eq
- mov x2, #MPIDR_AFFLVL_SHIFT
- lsl x2, x1, x2
- lsr x0, x0, x2
- lsl x0, x0, x2
- ret
-endfunc mpidr_mask_lower_afflvls
-
-
-func eret
- eret
-endfunc eret
-
func smc
smc #0
endfunc smc