aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug/cpu_context.zig
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2025-10-26 07:50:23 +0100
committerAlex Rønne Petersen <alex@alexrp.com>2025-10-26 08:48:21 +0100
commitc9e0df97f9f3cb4fff92769d0715ebba9e31be44 (patch)
tree6c95e6a215cc028cb705b649cef4361bf120499c /lib/std/debug/cpu_context.zig
parent0ec45050e0e5f503ebd35473e797ab73f8e64f09 (diff)
downloadzig-c9e0df97f9f3cb4fff92769d0715ebba9e31be44.tar.gz
zig-c9e0df97f9f3cb4fff92769d0715ebba9e31be44.zip
std.debug.cpu_context: fix mcontext alignment for x86_64-illumos
It contains a upad128_t array which increases its alignment.
Diffstat (limited to 'lib/std/debug/cpu_context.zig')
-rw-r--r--lib/std/debug/cpu_context.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/debug/cpu_context.zig b/lib/std/debug/cpu_context.zig
index bf1edd83c8..03cf6e633d 100644
--- a/lib/std/debug/cpu_context.zig
+++ b/lib/std/debug/cpu_context.zig
@@ -1997,7 +1997,7 @@ const signal_ucontext_t = switch (native_os) {
},
// https://github.com/illumos/illumos-gate/blob/d4ce137bba3bd16823db6374d9e9a643264ce245/usr/src/uts/intel/sys/mcontext.h
.x86_64 => extern struct {
- r15: u64,
+ r15: u64 align(16),
r14: u64,
r13: u64,
r12: u64,