authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-10-03 03:25:16+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-10-03 03:29:20+02:00
log006bc5a8ca815e5c20438fa747bfbb336a6b5066
tree8645920d485e25d11aff6f553d03cc63d1162cff
parent0f56d7afe298ae8f2b49d6c3b14fd935c971f1bb
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.os.linux: improve the s390x mcontext_t definition

The old one was correct in terms of layout but very user-hostile.

1 files changed, 8 insertions(+), 3 deletions(-)

lib/std/os/linux/s390x.zig+8-3
...@@ -269,7 +269,12 @@ pub const ucontext_t = extern struct {...@@ -269,7 +269,12 @@ pub const ucontext_t = extern struct {
269};269};
270270
271pub const mcontext_t = extern struct {271pub const mcontext_t = extern struct {
272 __regs1: [18]u64,272 psw: extern struct {
273 __regs2: [18]u32,273 mask: u64,
274 __regs3: [16]f64,274 addr: u64,
275 },
276 gregs: [16]u64,
277 aregs: [16]u32,
278 fpc: u32,
279 fregs: [16]f64,
275};280};