]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: correct exitThread on openbsd/arm64
authorJoel Sing <joel@sing.id.au>
Sat, 27 Apr 2019 17:08:37 +0000 (03:08 +1000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sat, 27 Apr 2019 17:15:55 +0000 (17:15 +0000)
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>
src/runtime/sys_openbsd_arm64.s

index 407c819b219f4ab9e9183b775cbe75eaaf2acbb1..ded916a02614138bbd80ba7ab94ab79a9b185d37 100644 (file)
@@ -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