1 // Copyright 2020 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
8 // System call support for AMD64, OpenBSD
11 // Provide these function names via assembly so they are provided as ABI0,
12 // rather than ABIInternal.
14 // func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
15 TEXT ·Syscall(SB),NOSPLIT,$0-56
16 JMP ·syscallInternal(SB)
18 // func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
19 TEXT ·Syscall6(SB),NOSPLIT,$0-80
20 JMP ·syscall6Internal(SB)
22 // func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
23 TEXT ·RawSyscall(SB),NOSPLIT,$0-56
24 JMP ·rawSyscallInternal(SB)
26 // func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
27 TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
28 JMP ·rawSyscall6Internal(SB)
30 // func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err Errno)
31 TEXT ·Syscall9(SB),NOSPLIT,$0-104
32 JMP ·syscall9Internal(SB)