1 // Copyright 2009 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.
10 // System calls for AMD64, Linux
13 // Just jump to package syscall's implementation for all these functions.
14 // The runtime may know about them.
16 TEXT ·Syscall(SB),NOSPLIT,$0-56
17 JMP syscall·Syscall(SB)
19 TEXT ·Syscall6(SB),NOSPLIT,$0-80
20 JMP syscall·Syscall6(SB)
22 TEXT ·SyscallNoError(SB),NOSPLIT,$0-48
23 CALL runtime·entersyscall(SB)
30 MOVQ trap+0(FP), AX // syscall entry
34 CALL runtime·exitsyscall(SB)
37 TEXT ·RawSyscall(SB),NOSPLIT,$0-56
38 JMP syscall·RawSyscall(SB)
40 TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
41 JMP syscall·RawSyscall6(SB)
43 TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48
50 MOVQ trap+0(FP), AX // syscall entry
56 TEXT ·gettimeofday(SB),NOSPLIT,$0-16
57 JMP syscall·gettimeofday(SB)