feature. See also
. The project being documented here (as the example) is the Zig library itself.
powerpc.syscall1
pub fn syscall1(
number: SYS,
arg1: syscall_arg_t,
) u32
File
Code
pub fn syscall1(
number: SYS,
arg1: syscall_arg_t,
) u32 {
var r0_out: u32 = undefined;
return asm volatile (
\\ sc
\\ bns+ 1f
\\ neg 3, 3
\\ 1:
: [ret] "={r3}" (-> u32),
[r0_out] "={r0}" (r0_out),
: [number] "{r0}" (@backingInt(number)),
[arg1] "{r3}" (arg1),
: .{ .memory = true, .cr0 = true, .r4 = true, .r5 = true, .r6 = true, .r7 = true, .r8 = true, .r9 = true, .r10 = true, .r11 = true, .r12 = true, .ctr = true, .xer = true });
}