feature. See also
. The project being documented here (as the example) is the Zig library itself.
mips64.syscall4
pub fn syscall4(
number: SYS,
arg1: syscall_arg_t,
arg2: syscall_arg_t,
arg3: syscall_arg_t,
arg4: syscall_arg_t,
) u64
File
Code
pub fn syscall4(
number: SYS,
arg1: syscall_arg_t,
arg2: syscall_arg_t,
arg3: syscall_arg_t,
arg4: syscall_arg_t,
) u64 {
return asm volatile (
\\ syscall
\\ beq $a3, $zero, 1f
\\ blez $v0, 1f
\\ dsubu $v0, $zero, $v0
\\1:
: [ret] "={$2}" (-> u64),
: [number] "{$2}" (@backingInt(number)),
[arg1] "{$4}" (arg1),
[arg2] "{$5}" (arg2),
[arg3] "{$6}" (arg3),
[arg4] "{$7}" (arg4),
: .{ .r1 = true, .r3 = true, .r8 = true, .r9 = true, .r10 = true, .r11 = true, .r12 = true, .r13 = true, .r14 = true, .r15 = true, .r24 = true, .r25 = true, .hi = true, .lo = true, .memory = true });
}