stage2: sparcv9: Add exit2 implementation

This commit is contained in:
Koakuma 2022-04-13 19:56:39 +07:00
parent b916ba18b6
commit 43e69be196

View File

@ -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)