Skip to content

Commit

Permalink
runtime: let (*sigctxt).r9 return the correct register value on netbsd
Browse files Browse the repository at this point in the history
Fixes #59152

Change-Id: I7f89e2b48db9ff120d7cd094b72ded865874e961
Reviewed-on: https://go-review.googlesource.com/c/go/+/478135
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Reviewed-by: Benny Siegert <bsiegert@gmail.com>
  • Loading branch information
tklauser authored and gopherbot committed Mar 21, 2023
1 parent f24afee commit 6be7fd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/signal_netbsd_amd64.go
Expand Up @@ -26,7 +26,7 @@ func (c *sigctxt) rsi() uint64 { return c.regs().__gregs[_REG_RSI] }
func (c *sigctxt) rbp() uint64 { return c.regs().__gregs[_REG_RBP] }
func (c *sigctxt) rsp() uint64 { return c.regs().__gregs[_REG_RSP] }
func (c *sigctxt) r8() uint64 { return c.regs().__gregs[_REG_R8] }
func (c *sigctxt) r9() uint64 { return c.regs().__gregs[_REG_R8] }
func (c *sigctxt) r9() uint64 { return c.regs().__gregs[_REG_R9] }
func (c *sigctxt) r10() uint64 { return c.regs().__gregs[_REG_R10] }
func (c *sigctxt) r11() uint64 { return c.regs().__gregs[_REG_R11] }
func (c *sigctxt) r12() uint64 { return c.regs().__gregs[_REG_R12] }
Expand Down

0 comments on commit 6be7fd3

Please sign in to comment.