mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
stage2: sparcv9: Add exit2 implementation
This commit is contained in:
parent
b916ba18b6
commit
43e69be196
@ -166,6 +166,14 @@ fn exit2(code: usize) noreturn {
|
|||||||
: "rcx", "r11", "memory"
|
: "rcx", "r11", "memory"
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
.sparcv9 => {
|
||||||
|
asm volatile ("ta 0x6d"
|
||||||
|
:
|
||||||
|
: [number] "{g1}" (1),
|
||||||
|
[arg1] "{o0}" (code)
|
||||||
|
: "o0", "o1", "o2", "o3", "o4", "o5", "o6", "o7", "memory"
|
||||||
|
);
|
||||||
|
},
|
||||||
else => @compileError("TODO"),
|
else => @compileError("TODO"),
|
||||||
},
|
},
|
||||||
// exits(0)
|
// exits(0)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user