std.os.linux.s390x: fix restore function

This commit is contained in:
Andrew Kelley 2025-10-28 19:21:53 -07:00
parent 05b28409e7
commit b1d270d38e

View file

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