From 006bc5a8ca815e5c20438fa747bfbb336a6b5066 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Fri, 3 Oct 2025 03:25:16 +0200 Subject: [PATCH] std.os.linux: improve the s390x mcontext_t definition The old one was correct in terms of layout but very user-hostile. --- lib/std/os/linux/s390x.zig | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/std/os/linux/s390x.zig b/lib/std/os/linux/s390x.zig index 71594d4a65..86495f6f79 100644 --- a/lib/std/os/linux/s390x.zig +++ b/lib/std/os/linux/s390x.zig @@ -269,7 +269,12 @@ pub const ucontext_t = extern struct { }; pub const mcontext_t = extern struct { - __regs1: [18]u64, - __regs2: [18]u32, - __regs3: [16]f64, + psw: extern struct { + mask: u64, + addr: u64, + }, + gregs: [16]u64, + aregs: [16]u32, + fpc: u32, + fregs: [16]f64, };