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
lib/std/os/linux/s390x.zig+8-3
| ... | ... | @@ -269,7 +269,12 @@ pub const ucontext_t = extern struct { |
| 269 | 269 | }; |
| 270 | 270 | |
| 271 | 271 | 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, |
| 275 | 280 | }; |