]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.typeparams] runtime: use internal/abi.FuncPCABI0 for sigtramp PC on Plan 9
authorCherry Mui <cherryyz@google.com>
Wed, 19 May 2021 21:33:32 +0000 (17:33 -0400)
committerCherry Mui <cherryyz@google.com>
Thu, 20 May 2021 19:04:21 +0000 (19:04 +0000)
Same as CL 313230, for Plan 9.

Change-Id: I0e99c095856c4b21b89abdffa4c0699b24ea9428
Reviewed-on: https://go-review.googlesource.com/c/go/+/321330
Trust: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
src/runtime/os_plan9.go

index 4d428346f0e37de08ef4763700abdc06b939c499..975d460a7da924ede62917c0b6800d826cfdf4c5 100644 (file)
@@ -5,6 +5,7 @@
 package runtime
 
 import (
+       "internal/abi"
        "runtime/internal/atomic"
        "unsafe"
 )
@@ -346,7 +347,7 @@ func getRandomData(r []byte) {
 
 func initsig(preinit bool) {
        if !preinit {
-               notify(unsafe.Pointer(funcPC(sigtramp)))
+               notify(unsafe.Pointer(abi.FuncPCABI0(sigtramp)))
        }
 }