Skip to content

Commit 2ff4936

Browse files
mrutland-armwildea01
authored andcommitted
arm64: asm: remove unused push/pop macros
We haven't used the push/pop macros for a while now, as it's typically better to use immediate offsets for batches of accesses to the stack, as we now do in the entry assembly for the kernel and hyp code. Remove the unused macros. Signed-off-by: Mark Rutland <mark.rutland@arm.com> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Cc: James Morse <james.morse@arm.com> Cc: Marc Zyngier <marc.zyngier@arm.com> Cc: Will Deacon <will.deacon@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
1 parent 8ee7087 commit 2ff4936

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

arch/arm64/include/asm/assembler.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,6 @@
2626
#include <asm/ptrace.h>
2727
#include <asm/thread_info.h>
2828

29-
/*
30-
* Stack pushing/popping (register pairs only). Equivalent to store decrement
31-
* before, load increment after.
32-
*/
33-
.macro push, xreg1, xreg2
34-
stp \xreg1, \xreg2, [sp, #-16]!
35-
.endm
36-
37-
.macro pop, xreg1, xreg2
38-
ldp \xreg1, \xreg2, [sp], #16
39-
.endm
40-
4129
/*
4230
* Enable and disable interrupts.
4331
*/

0 commit comments

Comments
 (0)