aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/golang.org/x/sys/unix/asm_linux_amd64.s
diff options
context:
space:
mode:
authorappilon <apilon@hashicorp.com>2019-02-27 16:43:31 -0500
committerGitHub <noreply@github.com>2019-02-27 16:43:31 -0500
commit844b5a68d8af4791755b8f0ad293cc99f5959183 (patch)
tree255c250a5c9d4801c74092d33b7337d8c14438ff /vendor/golang.org/x/sys/unix/asm_linux_amd64.s
parent303b299eeb6b06e939e35905e4b34cb410dd9dc3 (diff)
parent15c0b25d011f37e7c20aeca9eaf461f78285b8d9 (diff)
downloadterraform-provider-statuscake-844b5a68d8af4791755b8f0ad293cc99f5959183.tar.gz
terraform-provider-statuscake-844b5a68d8af4791755b8f0ad293cc99f5959183.tar.zst
terraform-provider-statuscake-844b5a68d8af4791755b8f0ad293cc99f5959183.zip
Merge pull request #27 from terraform-providers/go-modules-2019-02-22
[MODULES] Switch to Go Modules
Diffstat (limited to 'vendor/golang.org/x/sys/unix/asm_linux_amd64.s')
-rw-r--r--vendor/golang.org/x/sys/unix/asm_linux_amd64.s57
1 files changed, 57 insertions, 0 deletions
diff --git a/vendor/golang.org/x/sys/unix/asm_linux_amd64.s b/vendor/golang.org/x/sys/unix/asm_linux_amd64.s
new file mode 100644
index 0000000..c6468a9
--- /dev/null
+++ b/vendor/golang.org/x/sys/unix/asm_linux_amd64.s
@@ -0,0 +1,57 @@
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.
4
5// +build !gccgo
6
7#include "textflag.h"
8
9//
10// System calls for AMD64, Linux
11//
12
13// Just jump to package syscall's implementation for all these functions.
14// The runtime may know about them.
15
16TEXT ·Syscall(SB),NOSPLIT,$0-56
17 JMP syscall·Syscall(SB)
18
19TEXT ·Syscall6(SB),NOSPLIT,$0-80
20 JMP syscall·Syscall6(SB)
21
22TEXT ·SyscallNoError(SB),NOSPLIT,$0-48
23 CALL runtime·entersyscall(SB)
24 MOVQ a1+8(FP), DI
25 MOVQ a2+16(FP), SI
26 MOVQ a3+24(FP), DX
27 MOVQ $0, R10
28 MOVQ $0, R8
29 MOVQ $0, R9
30 MOVQ trap+0(FP), AX // syscall entry
31 SYSCALL
32 MOVQ AX, r1+32(FP)
33 MOVQ DX, r2+40(FP)
34 CALL runtime·exitsyscall(SB)
35 RET
36
37TEXT ·RawSyscall(SB),NOSPLIT,$0-56
38 JMP syscall·RawSyscall(SB)
39
40TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
41 JMP syscall·RawSyscall6(SB)
42
43TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48
44 MOVQ a1+8(FP), DI
45 MOVQ a2+16(FP), SI
46 MOVQ a3+24(FP), DX
47 MOVQ $0, R10
48 MOVQ $0, R8
49 MOVQ $0, R9
50 MOVQ trap+0(FP), AX // syscall entry
51 SYSCALL
52 MOVQ AX, r1+32(FP)
53 MOVQ DX, r2+40(FP)
54 RET
55
56TEXT ·gettimeofday(SB),NOSPLIT,$0-16
57 JMP syscall·gettimeofday(SB)