mirror of
https://github.com/notwa/mm
synced 2024-11-05 02:39:02 -08:00
fix potential stack alignment issue
This commit is contained in:
parent
0258dcc2db
commit
69cf091406
1 changed files with 7 additions and 7 deletions
|
@ -55,14 +55,14 @@ local hook = [[
|
||||||
sw a2, 8(sp)
|
sw a2, 8(sp)
|
||||||
sw a3, 12(sp)
|
sw a3, 12(sp)
|
||||||
bal start
|
bal start
|
||||||
subi sp, sp, 20
|
subi sp, sp, 24
|
||||||
lw ra, 16(sp)
|
lw ra, 20(sp)
|
||||||
lw a0, 20(sp)
|
lw a0, 24(sp)
|
||||||
lw a1, 24(sp)
|
lw a1, 28(sp)
|
||||||
lw a2, 28(sp)
|
lw a2, 32(sp)
|
||||||
lw a3, 32(sp)
|
lw a3, 36(sp)
|
||||||
j @hooked
|
j @hooked
|
||||||
addi sp, sp, 20
|
addi sp, sp, 24
|
||||||
start:
|
start:
|
||||||
]]
|
]]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue