std.os.linux: improve the s390x mcontext_t definition

The old one was correct in terms of layout but very user-hostile.
This commit is contained in:
Alex Rønne Petersen 2025-10-03 03:25:16 +02:00
parent 0f56d7afe2
commit 006bc5a8ca
No known key found for this signature in database

View File

@ -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,
};