aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/asm_arm.s
diff options
context:
space:
mode:
authorJordan Rhee <jordanrh@microsoft.com>2018-08-08 14:44:42 -0700
committerIan Lance Taylor <iant@golang.org>2018-09-18 22:18:23 +0000
commitd24ec86e4f64302e91d8062eabfcd21296bb9b04 (patch)
tree93618b9bd00376df7529db6c4fd8785a91dcc41f /src/runtime/asm_arm.s
parent37db664c6cd480b578d6114854bc20c2bc3cddcd (diff)
downloadgo-d24ec86e4f64302e91d8062eabfcd21296bb9b04.tar.gz
go-d24ec86e4f64302e91d8062eabfcd21296bb9b04.zip
runtime: support windows/arm
Updates #26148 Change-Id: I8f68b2c926c7b11dc86c9664ed7ff2d2f78b64b4 Reviewed-on: https://go-review.googlesource.com/128715 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime/asm_arm.s')
-rw-r--r--src/runtime/asm_arm.s4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/runtime/asm_arm.s b/src/runtime/asm_arm.s
index 6722ba760f..ace2b6def7 100644
--- a/src/runtime/asm_arm.s
+++ b/src/runtime/asm_arm.s
@@ -784,6 +784,9 @@ TEXT setg<>(SB),NOSPLIT|NOFRAME,$0-0
MOVW R0, g
// Save g to thread-local storage.
+#ifdef GOOS_windows
+ B runtime·save_g(SB)
+#else
MOVB runtime·iscgo(SB), R0
CMP $0, R0
B.EQ 2(PC)
@@ -791,6 +794,7 @@ TEXT setg<>(SB),NOSPLIT|NOFRAME,$0-0
MOVW g, R0
RET
+#endif
TEXT runtime·emptyfunc(SB),0,$0-0
RET