From 88c5324f2ea7ebc2fb3f12c3c821096382663aa9 Mon Sep 17 00:00:00 2001 From: Xiaodong Liu Date: Mon, 15 Nov 2021 20:59:24 +0800 Subject: [PATCH] internal/syscall/unix: loong64 use generic syscall Contributors to the loong64 port are: Weining Lu Lei Wang Lingqin Gong Xiaolin Zhao Meidan Li Xiaojuan Zhai Qiyuan Pu Guoqi Chen This port has been updated to Go 1.15.6: https://github.com/loongson/go Updates #46229 Change-Id: I5988bf3efed37b03b9193f1089dfece060ccba99 Reviewed-on: https://go-review.googlesource.com/c/go/+/363934 Auto-Submit: Ian Lance Taylor TryBot-Result: Gopher Robot Reviewed-by: Ian Lance Taylor Run-TryBot: David Chase Reviewed-by: David Chase Run-TryBot: Ian Lance Taylor Reviewed-by: Ian Lance Taylor --- src/internal/syscall/unix/at_sysnum_fstatat_linux.go | 2 +- src/internal/syscall/unix/sysnum_linux_generic.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/internal/syscall/unix/at_sysnum_fstatat_linux.go b/src/internal/syscall/unix/at_sysnum_fstatat_linux.go index 73a3da5bff2..90a932b7409 100644 --- a/src/internal/syscall/unix/at_sysnum_fstatat_linux.go +++ b/src/internal/syscall/unix/at_sysnum_fstatat_linux.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build arm64 || riscv64 +//go:build arm64 || loong64 || riscv64 package unix diff --git a/src/internal/syscall/unix/sysnum_linux_generic.go b/src/internal/syscall/unix/sysnum_linux_generic.go index 3c5394a96b1..8c132c6bf50 100644 --- a/src/internal/syscall/unix/sysnum_linux_generic.go +++ b/src/internal/syscall/unix/sysnum_linux_generic.go @@ -2,13 +2,13 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build linux && (arm64 || riscv64) +//go:build linux && (arm64 || loong64 || riscv64) package unix // This file is named "generic" because at a certain point Linux started // standardizing on system call numbers across architectures. So far this -// means only arm64 and riscv64 use the standard numbers. +// means only arm64 loong64 and riscv64 use the standard numbers. const ( getrandomTrap uintptr = 278