From 69cf091406d2f472d9a87531113ed9cde2f9541e Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Thu, 24 Mar 2016 23:37:37 -0700 Subject: [PATCH] fix potential stack alignment issue --- Lua/inject.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Lua/inject.lua b/Lua/inject.lua index 08f95e7..23b37d7 100644 --- a/Lua/inject.lua +++ b/Lua/inject.lua @@ -55,14 +55,14 @@ local hook = [[ sw a2, 8(sp) sw a3, 12(sp) bal start - subi sp, sp, 20 - lw ra, 16(sp) - lw a0, 20(sp) - lw a1, 24(sp) - lw a2, 28(sp) - lw a3, 32(sp) + subi sp, sp, 24 + lw ra, 20(sp) + lw a0, 24(sp) + lw a1, 28(sp) + lw a2, 32(sp) + lw a3, 36(sp) j @hooked - addi sp, sp, 20 + addi sp, sp, 24 start: ]]