• Vineet Gupta's avatar
    ARC: entry: SAVE_ABI_CALLEE_REG: ISA/ABI specific helper · 9de7fc30
    Vineet Gupta authored
    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: default avatarVineet Gupta <vgupta@kernel.org>
    9de7fc30
ptrace.h 4.39 KB