| ... | @@ -229,7 +229,7 @@ pub fn regBytes( | ... | @@ -229,7 +229,7 @@ pub fn regBytes( |
| 229 | else => error.UnimplementedOs, | 229 | else => error.UnimplementedOs, |
| 230 | }, | 230 | }, |
| 231 | .x86_64 => switch (builtin.os.tag) { | 231 | .x86_64 => switch (builtin.os.tag) { |
| 232 | .linux, .netbsd, .solaris => switch (reg_number) { | 232 | .linux, .solaris => switch (reg_number) { |
| 233 | 0 => mem.asBytes(&ucontext_ptr.mcontext.gregs[os.REG.RAX]), | 233 | 0 => mem.asBytes(&ucontext_ptr.mcontext.gregs[os.REG.RAX]), |
| 234 | 1 => mem.asBytes(&ucontext_ptr.mcontext.gregs[os.REG.RDX]), | 234 | 1 => mem.asBytes(&ucontext_ptr.mcontext.gregs[os.REG.RDX]), |
| 235 | 2 => mem.asBytes(&ucontext_ptr.mcontext.gregs[os.REG.RCX]), | 235 | 2 => mem.asBytes(&ucontext_ptr.mcontext.gregs[os.REG.RCX]), |