From 4840f44fa7eacf88537733285a16f89997b58163 Mon Sep 17 00:00:00 2001 From: Ast-x64 Date: Thu, 11 May 2023 00:58:36 +0800 Subject: [PATCH] Add riscv64 support Upstreamed from https://github.com/felixonmars/archriscv-packages/commit/223fd23123026c14a7a6431caf882911547896aa --- gls/goid_riscv64.s | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 gls/goid_riscv64.s diff --git a/gls/goid_riscv64.s b/gls/goid_riscv64.s new file mode 100644 index 0000000..e61e28b --- /dev/null +++ b/gls/goid_riscv64.s @@ -0,0 +1,11 @@ +// Copyright 2016 Huan Du. All rights reserved. +// Use of this source code is governed by a MIT +// license that can be found in the LICENSE file. + +#include "go_asm.h" +#include "textflag.h" + +TEXT ·getg(SB), NOSPLIT, $0-8 + MOV g, A0 + MOV A0, ret+0(FP) + RET