Skip to content

Commit 6be7fd3

Browse files
tklausergopherbot
authored andcommitted
runtime: let (*sigctxt).r9 return the correct register value on netbsd
Fixes #59152 Change-Id: I7f89e2b48db9ff120d7cd094b72ded865874e961 Reviewed-on: https://go-review.googlesource.com/c/go/+/478135 Auto-Submit: Tobias Klauser <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Tobias Klauser <[email protected]> Reviewed-by: Heschi Kreinick <[email protected]> Reviewed-by: Benny Siegert <[email protected]>
1 parent f24afee commit 6be7fd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/signal_netbsd_amd64.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func (c *sigctxt) rsi() uint64 { return c.regs().__gregs[_REG_RSI] }
2626
func (c *sigctxt) rbp() uint64 { return c.regs().__gregs[_REG_RBP] }
2727
func (c *sigctxt) rsp() uint64 { return c.regs().__gregs[_REG_RSP] }
2828
func (c *sigctxt) r8() uint64 { return c.regs().__gregs[_REG_R8] }
29-
func (c *sigctxt) r9() uint64 { return c.regs().__gregs[_REG_R8] }
29+
func (c *sigctxt) r9() uint64 { return c.regs().__gregs[_REG_R9] }
3030
func (c *sigctxt) r10() uint64 { return c.regs().__gregs[_REG_R10] }
3131
func (c *sigctxt) r11() uint64 { return c.regs().__gregs[_REG_R11] }
3232
func (c *sigctxt) r12() uint64 { return c.regs().__gregs[_REG_R12] }

0 commit comments

Comments
 (0)