1
0
Fork 0
mirror of https://github.com/notwa/mm synced 2024-11-04 22:49:03 -08:00

fix potential stack alignment issue

This commit is contained in:
Connor Olding 2016-03-24 23:37:37 -07:00
parent 0258dcc2db
commit 69cf091406

View file

@ -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:
]]