aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/tls_arm64.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/tls_arm64.s')
-rw-r--r--src/runtime/tls_arm64.s4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/runtime/tls_arm64.s b/src/runtime/tls_arm64.s
index 3f02974d5b..085012f791 100644
--- a/src/runtime/tls_arm64.s
+++ b/src/runtime/tls_arm64.s
@@ -10,9 +10,11 @@
TEXT runtime·load_g(SB),NOSPLIT,$0
#ifndef TLS_darwin
+#ifndef GOOS_openbsd
MOVB runtime·iscgo(SB), R0
CBZ R0, nocgo
#endif
+#endif
MRS_TPIDR_R0
#ifdef TLS_darwin
@@ -27,9 +29,11 @@ nocgo:
TEXT runtime·save_g(SB),NOSPLIT,$0
#ifndef TLS_darwin
+#ifndef GOOS_openbsd
MOVB runtime·iscgo(SB), R0
CBZ R0, nocgo
#endif
+#endif
MRS_TPIDR_R0
#ifdef TLS_darwin