From f53b158f49dac49dafe596086aa017037349f485 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Mon, 19 Oct 2020 05:31:14 +0100 Subject: [PATCH] xchg.S: Maintain correct sp alignment in ARM64 `call_example'. --- xchg.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xchg.S b/xchg.S index 0d836c7..8e0bf66 100644 --- a/xchg.S +++ b/xchg.S @@ -380,7 +380,7 @@ proc call_example #elif defined(__aarch64__) - stp x29, x30, [sp, #-13*8]! + stp x29, x30, [sp, #-14*8]! mov x29, sp stp x19, x20, [sp, #16] stp x21, x22, [sp, #32] @@ -421,7 +421,7 @@ proc call_example ldp x23, x24, [sp, #48] ldp x25, x26, [sp, #64] ldp x27, x28, [sp, #80] - ldp x29, x30, [sp], #13*8 + ldp x29, x30, [sp], #14*8 ret -- 2.11.0