Skip to content

Commit 006bc5a

Browse files
committed
std.os.linux: improve the s390x mcontext_t definition
The old one was correct in terms of layout but very user-hostile.
1 parent 0f56d7a commit 006bc5a

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

lib/std/os/linux/s390x.zig

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,12 @@ pub const ucontext_t = extern struct {
269269
};
270270

271271
pub const mcontext_t = extern struct {
272-
__regs1: [18]u64,
273-
__regs2: [18]u32,
274-
__regs3: [16]f64,
272+
psw: extern struct {
273+
mask: u64,
274+
addr: u64,
275+
},
276+
gregs: [16]u64,
277+
aregs: [16]u32,
278+
fpc: u32,
279+
fregs: [16]f64,
275280
};

0 commit comments

Comments
 (0)