mirror of
https://github.com/golang/go
synced 2024-11-18 15:54:42 -07:00
runtime: unify the method signature for *sigctxt.fault
Currently, *sigctxt.fault of freebsd-arm64 and openbsd-arm64 return
uint64 which is different from other arches (return uintptr). Change
the method signature for consistency.
Change-Id: I81185123c1ea40e456075fd86b931aa860c38a42
GitHub-Last-Rev: 82934ecd3d
GitHub-Pull-Request: golang/go#62672
Reviewed-on: https://go-review.googlesource.com/c/go/+/528817
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
This commit is contained in:
parent
6f2e1be132
commit
a72d1e5bf4
@ -52,7 +52,7 @@ func (c *sigctxt) sp() uint64 { return c.regs().mc_gpregs.gp_sp }
|
||||
//go:nowritebarrierrec
|
||||
func (c *sigctxt) pc() uint64 { return c.regs().mc_gpregs.gp_elr }
|
||||
|
||||
func (c *sigctxt) fault() uint64 { return c.info.si_addr }
|
||||
func (c *sigctxt) fault() uintptr { return uintptr(c.info.si_addr) }
|
||||
|
||||
func (c *sigctxt) sigcode() uint64 { return uint64(c.info.si_code) }
|
||||
func (c *sigctxt) sigaddr() uint64 { return c.info.si_addr }
|
||||
|
@ -54,7 +54,7 @@ func (c *sigctxt) sp() uint64 { return (uint64)(c.regs().sc_sp) }
|
||||
//go:nowritebarrierrec
|
||||
func (c *sigctxt) rip() uint64 { return (uint64)(c.regs().sc_lr) } /* XXX */
|
||||
|
||||
func (c *sigctxt) fault() uint64 { return c.sigaddr() }
|
||||
func (c *sigctxt) fault() uintptr { return uintptr(c.sigaddr()) }
|
||||
func (c *sigctxt) sigcode() uint64 { return uint64(c.info.si_code) }
|
||||
func (c *sigctxt) sigaddr() uint64 {
|
||||
return *(*uint64)(add(unsafe.Pointer(c.info), 16))
|
||||
|
Loading…
Reference in New Issue
Block a user