| // Copyright 2019 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. |
| // System calls for linux/riscv64. |
| // Where available, just jump to package syscall's implementation of |
| TEXT ·Syscall(SB),NOSPLIT,$0-56 |
| TEXT ·Syscall6(SB),NOSPLIT,$0-80 |
| TEXT ·SyscallNoError(SB),NOSPLIT,$0-48 |
| CALL runtime·entersyscall(SB) |
| MOV trap+0(FP), A7 // syscall entry |
| CALL runtime·exitsyscall(SB) |
| TEXT ·RawSyscall(SB),NOSPLIT,$0-56 |
| JMP syscall·RawSyscall(SB) |
| TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 |
| JMP syscall·RawSyscall6(SB) |
| TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48 |
| MOV trap+0(FP), A7 // syscall entry |