implement inline 5- and 6-argument syscalls for mipsn32 and mips64
[musl.git] / src / internal / s390x / syscall.s
blob2322bc3682bdba95e302bc35b2e72b14624bd041
1 .global __syscall
2 .hidden __syscall
3 .type __syscall, %function
4 __syscall:
5 stg %r7, 56(%r15)
6 lgr %r1, %r2
7 lgr %r2, %r3
8 lgr %r3, %r4
9 lgr %r4, %r5
10 lgr %r5, %r6
11 lg %r6, 160(%r15)
12 lg %r7, 168(%r15)
13 svc 0
14 lg %r7, 56(%r15)
15 br %r14