mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
std.os.linux.s390x: fix restore function
This commit is contained in:
parent
05b28409e7
commit
b1d270d38e
@ -136,7 +136,13 @@ pub fn clone() callconv(.naked) u64 {
|
||||
);
|
||||
}
|
||||
|
||||
pub const restore = restore_rt;
|
||||
pub fn restore() callconv(.naked) noreturn {
|
||||
asm volatile (
|
||||
\\svc 0
|
||||
:
|
||||
: [number] "{r1}" (@intFromEnum(SYS.sigreturn)),
|
||||
);
|
||||
}
|
||||
|
||||
pub fn restore_rt() callconv(.naked) noreturn {
|
||||
asm volatile (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user