summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2020-03-31 10:16:32 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2020-04-01 07:50:30 +0200
commit803f4331101a669b905cfcf8ab108d4a87fab9b7 (patch)
tree2389598e34a2180c5526a16996e009b4ff10472a
parenta2481d09aa76bf50da6d9ce0b5607920988fccac (diff)
downloadbarebox-803f4331101a669b905cfcf8ab108d4a87fab9b7.tar.gz
barebox-803f4331101a669b905cfcf8ab108d4a87fab9b7.tar.xz
ARM: Drop unused macros in exceptions.S
Those macros looks like a leftover from the time Barebox had some code to deal with IRQs. That code is gone and there are no users for those macros in the codebase anymore. Drop them. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/cpu/exceptions.S28
1 files changed, 0 insertions, 28 deletions
diff --git a/arch/arm/cpu/exceptions.S b/arch/arm/cpu/exceptions.S
index eda0d6ab8d..55014c8d46 100644
--- a/arch/arm/cpu/exceptions.S
+++ b/arch/arm/cpu/exceptions.S
@@ -55,26 +55,6 @@
mov r0, sp
.endm
- .macro irq_save_user_regs
- sub sp, sp, #S_FRAME_SIZE
- stmia sp, {r0 - r12} @ Calling r0-r12
- add r8, sp, #S_PC
- stmdb r8, {sp, lr}^ @ Calling SP, LR
- str lr, [r8, #0] @ Save calling PC
- mrs r6, spsr
- str r6, [r8, #4] @ Save CPSR
- str r0, [r8, #8] @ Save OLD_R0
- mov r0, sp
- .endm
-
- .macro irq_restore_user_regs
- ldmia sp, {r0 - lr}^ @ Calling r0 - lr
- mov r0, r0
- ldr lr, [sp, #S_PC] @ Get PC
- add sp, sp, #S_FRAME_SIZE
- subs pc, lr, #4 @ return & move spsr_svc into cpsr
- .endm
-
.macro get_bad_stack
ldr r13, =abort_stack
str lr, [r13] @ save caller lr / spsr
@@ -103,14 +83,6 @@
do_abort_\@:
.endm
- .macro get_irq_stack @ setup IRQ stack
- ldr sp, IRQ_STACK_START
- .endm
-
- .macro get_fiq_stack @ setup FIQ stack
- ldr sp, FIQ_STACK_START
- .endm
-
/*
* exception handlers
*/