aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/tls_riscv64.s
diff options
context:
space:
mode:
authorJoel Sing <joel@sing.id.au>2019-11-04 04:58:37 +1100
committerJoel Sing <joel@sing.id.au>2020-01-19 14:04:09 +0000
commit8e0be05ec7c369387c0ed3c9cf37968c6d3afbbd (patch)
treea52a3963edf41ea1960b0c018d047ecfe0756460 /src/runtime/tls_riscv64.s
parentcbaa666682386fe5350bf87d7d70171704c90fe4 (diff)
downloadgo-8e0be05ec7c369387c0ed3c9cf37968c6d3afbbd.tar.gz
go-8e0be05ec7c369387c0ed3c9cf37968c6d3afbbd.zip
runtime: add support for linux/riscv64
Based on riscv-go port. Updates #27532 Change-Id: If522807a382130be3c8d40f4b4c1131d1de7c9e3 Reviewed-on: https://go-review.googlesource.com/c/go/+/204632 Run-TryBot: Joel Sing <joel@sing.id.au> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/runtime/tls_riscv64.s')
-rw-r--r--src/runtime/tls_riscv64.s18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/runtime/tls_riscv64.s b/src/runtime/tls_riscv64.s
new file mode 100644
index 0000000000..8386980421
--- /dev/null
+++ b/src/runtime/tls_riscv64.s
@@ -0,0 +1,18 @@
+// Copyright 2015 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+#include "go_asm.h"
+#include "go_tls.h"
+#include "funcdata.h"
+#include "textflag.h"
+
+// If !iscgo, this is a no-op.
+//
+// NOTE: mcall() assumes this clobbers only R23 (REGTMP).
+// FIXME: cgo
+TEXT runtimeĀ·save_g(SB),NOSPLIT|NOFRAME,$0-0
+ RET
+
+TEXT runtimeĀ·load_g(SB),NOSPLIT|NOFRAME,$0-0
+ RET