Skip to content

Commit 17a7f21

Browse files
4a6f656cbradfitz
authored andcommitted
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 <[email protected]>
1 parent 930d6ec commit 17a7f21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/sys_openbsd_arm64.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ TEXT runtime·exit(SB),NOSPLIT|NOFRAME,$0
2525

2626
// func exitThread(wait *uint32)
2727
TEXT runtime·exitThread(SB),NOSPLIT,$0-4
28-
MOVW wait+0(FP), R0 // arg 1 - notdead
28+
MOVD wait+0(FP), R0 // arg 1 - notdead
2929
MOVD $302, R8 // sys___threxit
3030
SVC
3131
MOVD $0, R0 // crash on syscall failure

0 commit comments

Comments
 (0)