diff options
author | Joel Sing <joel@sing.id.au> | 2020-05-19 18:56:01 +1000 |
---|---|---|
committer | Joel Sing <joel@sing.id.au> | 2020-11-03 12:59:51 +0000 |
commit | 393f2bb067088cdbdb8d5848e6880b2ce65ddaf9 (patch) | |
tree | 91d346ce5c6d3019b935a5f5c511338556009c65 /src/runtime/cgocall.go | |
parent | 974def803ee9fd03a755014dcb62d55105c846f1 (diff) | |
download | go-393f2bb067088cdbdb8d5848e6880b2ce65ddaf9.tar.gz go-393f2bb067088cdbdb8d5848e6880b2ce65ddaf9.zip |
cmd/dist,cmd/go,runtime: add support for cgo on linux/riscv64
Fixes #36641
Change-Id: I51868d83ce341d78d33b221d184c5a5110c60d14
Reviewed-on: https://go-review.googlesource.com/c/go/+/263598
Trust: Joel Sing <joel@sing.id.au>
Run-TryBot: Joel Sing <joel@sing.id.au>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/runtime/cgocall.go')
-rw-r--r-- | src/runtime/cgocall.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/cgocall.go b/src/runtime/cgocall.go index 9bca279318..20cacd6043 100644 --- a/src/runtime/cgocall.go +++ b/src/runtime/cgocall.go @@ -309,7 +309,7 @@ func unwindm(restore *bool) { switch GOARCH { default: throw("unwindm not implemented") - case "386", "amd64", "arm", "ppc64", "ppc64le", "mips64", "mips64le", "s390x", "mips", "mipsle": + case "386", "amd64", "arm", "ppc64", "ppc64le", "mips64", "mips64le", "s390x", "mips", "mipsle", "riscv64": sched.sp = *(*uintptr)(unsafe.Pointer(sched.sp + sys.MinFrameSize)) case "arm64": sched.sp = *(*uintptr)(unsafe.Pointer(sched.sp + 16)) |