zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 006bc5a8ca815e5c20438fa747bfbb336a6b5066 (tree)
parent 0f56d7afe298ae8f2b49d6c3b14fd935c971f1bb
Author: Alex Rønne Petersen <alex@alexrp.com>
Date:   Fri,  3 Oct 2025 03:25:16 +0200

std.os.linux: improve the s390x mcontext_t definition

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

Diffstat:
Mlib/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 @@ -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, };