X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/4bf3072e34661918a8e6c5e95c3e2ab05c76089b..42c44b27cf735c8862f89e61f0ec522a0e0d0964:/base/asm-common.h diff --git a/base/asm-common.h b/base/asm-common.h index 3560ec55..1dfb6338 100644 --- a/base/asm-common.h +++ b/base/asm-common.h @@ -453,7 +453,7 @@ name: #define WHOLE(reg) _REGFORM(reg, r) // Stack management and unwinding. -.macro setfp fp, offset=0 +.macro setfp fp=R_bp(r), offset=0 .if \offset == 0 mov \fp, R_sp(r) #if __ELF__ @@ -989,7 +989,7 @@ name: #define QQ(qlo, qhi) D0(qlo)-D1(qhi) // Stack management and unwinding. -.macro setfp fp, offset=0 +.macro setfp fp=r11, offset=0 .if \offset == 0 mov \fp, sp .setfp \fp, sp @@ -1074,7 +1074,7 @@ name: .endm // Stack management and unwinding. -.macro setfp fp, offset=0 +.macro setfp fp=x29, offset=0 // If you're just going through the motions with a fixed-size stack frame, // then you want to say `add x29, sp, #OFFSET' directly, which will avoid // pointlessly restoring sp later.