]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ARC: entry: SAVE_ABI_CALLEE_REG: ISA/ABI specific helper
authorVineet Gupta <vgupta@kernel.org>
Thu, 21 May 2020 20:33:24 +0000 (13:33 -0700)
committerVineet Gupta <vgupta@kernel.org>
Sat, 9 Dec 2023 00:30:24 +0000 (16:30 -0800)
commit9de7fc30f288ccee11c74613b9a0ee4904f6875f
treef56defa60f62c82f7f4d168c64a0bc30d33706e4
parent33cc938e65a98f1d29d0a18403dbbee050dcad9a
ARC: entry: SAVE_ABI_CALLEE_REG: ISA/ABI specific helper

And for ARcompact variant replace the PUSH/POP macros with gas provided
push/pop pseudo-instructions

This allows ISA specific implementation

e.g. Current ARCv2 PUSH/POP could be replaced with STD/LDL to save 2
registers at a time (w/o bothering with SP update each time) or
perhaps use ENTER_S/LEAVE_S to reduce code size

For ARCv3 ABI changed so callee regs are now r14-r26 (vs. r13-r25)
thus would need a different implementation.

Signed-off-by: Vineet Gupta <vgupta@kernel.org>
arch/arc/include/asm/entry-arcv2.h
arch/arc/include/asm/entry-compact.h
arch/arc/include/asm/entry.h
arch/arc/include/asm/ptrace.h