portable-devtools / go /src /syscall /asm_openbsd_arm64.s
codekingpro's picture
Add files using upload-large-folder tool
04dc9f2 verified
Raw
History Blame Contribute Delete
1.07 kB
// 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.
#include "textflag.h"
//
// System call support for ARM64, OpenBSD
//
// Provide these function names via assembly so they are provided as ABI0,
// rather than ABIInternal.
// func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
TEXT 路Syscall(SB),NOSPLIT,$0-56
JMP 路syscallInternal(SB)
// func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
TEXT 路Syscall6(SB),NOSPLIT,$0-80
JMP 路syscall6Internal(SB)
// func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
TEXT 路RawSyscall(SB),NOSPLIT,$0-56
JMP 路rawSyscallInternal(SB)
// func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
TEXT 路RawSyscall6(SB),NOSPLIT,$0-80
JMP 路rawSyscall6Internal(SB)
// func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err Errno)
TEXT 路Syscall9(SB),NOSPLIT,$0-104
JMP 路syscall9Internal(SB)