mirror of https://github.com/golang/go.git
runtime: correct exitThread on openbsd/arm64
The notdead argument to sys___threxit() is a pointer, hence requires a 64-bit move rather than a 32-bit one. Updates #31656 Change-Id: I52ad31ed5afaf43ccc3d934025288216e8052528 Reviewed-on: https://go-review.googlesource.com/c/go/+/174124 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
930d6ecb69
commit
17a7f21790
|
|
@ -25,7 +25,7 @@ TEXT runtime·exit(SB),NOSPLIT|NOFRAME,$0
|
|||
|
||||
// func exitThread(wait *uint32)
|
||||
TEXT runtime·exitThread(SB),NOSPLIT,$0-4
|
||||
MOVW wait+0(FP), R0 // arg 1 - notdead
|
||||
MOVD wait+0(FP), R0 // arg 1 - notdead
|
||||
MOVD $302, R8 // sys___threxit
|
||||
SVC
|
||||
MOVD $0, R0 // crash on syscall failure
|
||||
|
|
|
|||
Loading…
Reference in New Issue