aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/sys_netbsd_386.s
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2019-05-08 11:44:15 -0400
committerRuss Cox <rsc@golang.org>2019-05-09 21:13:18 +0000
commit6ed2ec4aa5ea6c34b1e3d42b7995c81ab74a27c4 (patch)
treecfa786127653271c1b4d3aff1c4d5cf0a2c76696 /src/runtime/sys_netbsd_386.s
parentcd03664f82a53dbe20d0b828189158ba3863039c (diff)
downloadgo-6ed2ec4aa5ea6c34b1e3d42b7995c81ab74a27c4.tar.gz
go-6ed2ec4aa5ea6c34b1e3d42b7995c81ab74a27c4.zip
runtime: fix vet complaints for linux/386
Working toward making the tree vet-safe instead of having so many exceptions in cmd/vet/all/whitelist. This CL makes "GOOS=linux GOARCH=386 go vet -unsafeptr=false runtime" happy, while keeping "GO_BUILDER_NAME=misc-vetall go tool dist test" happy too. For #31916. Change-Id: I3e5586a7ff6e359357350d0602c2259493280ded Reviewed-on: https://go-review.googlesource.com/c/go/+/176099 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/runtime/sys_netbsd_386.s')
-rw-r--r--src/runtime/sys_netbsd_386.s2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/sys_netbsd_386.s b/src/runtime/sys_netbsd_386.s
index 5501e10106..ee4e3cf5a2 100644
--- a/src/runtime/sys_netbsd_386.s
+++ b/src/runtime/sys_netbsd_386.s
@@ -361,7 +361,7 @@ TEXT runtime·sigaltstack(SB),NOSPLIT,$-8
TEXT runtime·setldt(SB),NOSPLIT,$8
// Under NetBSD we set the GS base instead of messing with the LDT.
- MOVL 16(SP), AX // tls0
+ MOVL base+4(FP), AX
MOVL AX, 0(SP)
CALL runtime·settls(SB)
RET