aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/tls_arm64.s
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2021-02-01 15:12:08 -0500
committerRuss Cox <rsc@golang.org>2021-02-19 00:41:03 +0000
commitc7c6c113be96b7b68f54696d2986f98dc9df64d6 (patch)
tree775e1a50c37b5d04ba82d2f8a410f1166f501114 /src/runtime/tls_arm64.s
parent3527caa7d63eab821c9936383e6c442d7a013de1 (diff)
downloadgo-c7c6c113be96b7b68f54696d2986f98dc9df64d6.tar.gz
go-c7c6c113be96b7b68f54696d2986f98dc9df64d6.zip
runtime: convert windows/arm64 assembly
The assembly is mostly a straightforward conversion of the equivalent arm assembly. This CL is part of a stack adding windows/arm64 support (#36439), intended to land in the Go 1.17 cycle. Change-Id: I61b15d712ade4d3a7285c7680de8e0987aacba10 Reviewed-on: https://go-review.googlesource.com/c/go/+/288828 Trust: Russ Cox <rsc@golang.org> Trust: Jason A. Donenfeld <Jason@zx2c4.com> Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/runtime/tls_arm64.s')
-rw-r--r--src/runtime/tls_arm64.s8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/runtime/tls_arm64.s b/src/runtime/tls_arm64.s
index 085012f791..52b3e8f222 100644
--- a/src/runtime/tls_arm64.s
+++ b/src/runtime/tls_arm64.s
@@ -9,12 +9,14 @@
#include "tls_arm64.h"
TEXT runtime·load_g(SB),NOSPLIT,$0
-#ifndef TLS_darwin
+#ifndef GOOS_darwin
#ifndef GOOS_openbsd
+#ifndef GOOS_windows
MOVB runtime·iscgo(SB), R0
CBZ R0, nocgo
#endif
#endif
+#endif
MRS_TPIDR_R0
#ifdef TLS_darwin
@@ -28,12 +30,14 @@ nocgo:
RET
TEXT runtime·save_g(SB),NOSPLIT,$0
-#ifndef TLS_darwin
+#ifndef GOOS_darwin
#ifndef GOOS_openbsd
+#ifndef GOOS_windows
MOVB runtime·iscgo(SB), R0
CBZ R0, nocgo
#endif
#endif
+#endif
MRS_TPIDR_R0
#ifdef TLS_darwin