Skip to content

Commit 4174804

Browse files
sunyuechipablodelara
authored andcommitted
riscv64_multibinary support more args
Signed-off-by: sunyuechi <[email protected]>
1 parent 0a68e94 commit 4174804

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

include/riscv64_multibinary.h

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,26 @@
5656
.section .text
5757
.global \name\()_mbinit
5858
\name\()_mbinit:
59-
addi sp, sp, -32
60-
sd ra, 24(sp)
59+
addi sp, sp, -56
60+
sd ra, 48(sp)
6161
sd a0, 0(sp)
6262
sd a1, 8(sp)
6363
sd a2, 16(sp)
64+
sd a3, 24(sp)
65+
sd a4, 32(sp)
66+
sd a5, 40(sp)
6467
call \name\()_dispatcher
6568
mv t2, a0
6669
la t0, \name\()_dispatcher_info
6770
sd a0, 0(t0)
68-
ld ra, 24(sp)
71+
ld ra, 48(sp)
6972
ld a0, 0(sp)
7073
ld a1, 8(sp)
7174
ld a2, 16(sp)
72-
addi sp, sp, 32
75+
ld a3, 24(sp)
76+
ld a4, 32(sp)
77+
ld a5, 40(sp)
78+
addi sp, sp, 56
7379
jr t2
7480
.global \name\()
7581
.type \name,%function

0 commit comments

Comments
 (0)