mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
std.os.linux.s390x: fix restore function
This commit is contained in:
parent
05b28409e7
commit
b1d270d38e
1 changed files with 7 additions and 1 deletions
|
|
@ -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 {
|
pub fn restore_rt() callconv(.naked) noreturn {
|
||||||
asm volatile (
|
asm volatile (
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue