aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/golang.org/x/sys/unix/asm_linux_arm64.s
diff options
context:
space:
mode:
authorLibravatar Rutger Broekhoff2023-12-29 21:31:53 +0100
committerLibravatar Rutger Broekhoff2023-12-29 21:31:53 +0100
commit404aeae4545d2426c089a5f8d5e82dae56f5212b (patch)
tree2d84e00af272b39fc04f3795ae06bc48970e57b5 /vendor/golang.org/x/sys/unix/asm_linux_arm64.s
parent209d8b0187ed025dec9ac149ebcced3462877bff (diff)
downloadgitolfs3-404aeae4545d2426c089a5f8d5e82dae56f5212b.tar.gz
gitolfs3-404aeae4545d2426c089a5f8d5e82dae56f5212b.zip
Make Nix builds work
Diffstat (limited to 'vendor/golang.org/x/sys/unix/asm_linux_arm64.s')
-rw-r--r--vendor/golang.org/x/sys/unix/asm_linux_arm64.s50
1 files changed, 50 insertions, 0 deletions
diff --git a/vendor/golang.org/x/sys/unix/asm_linux_arm64.s b/vendor/golang.org/x/sys/unix/asm_linux_arm64.s
new file mode 100644
index 0000000..01e5e25
--- /dev/null
+++ b/vendor/golang.org/x/sys/unix/asm_linux_arm64.s
@@ -0,0 +1,50 @@
1// Copyright 2015 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//go:build linux && arm64 && gc
6
7#include "textflag.h"
8
9// Just jump to package syscall's implementation for all these functions.
10// The runtime may know about them.
11
12TEXT ·Syscall(SB),NOSPLIT,$0-56
13 B syscall·Syscall(SB)
14
15TEXT ·Syscall6(SB),NOSPLIT,$0-80
16 B syscall·Syscall6(SB)
17
18TEXT ·SyscallNoError(SB),NOSPLIT,$0-48
19 BL runtime·entersyscall(SB)
20 MOVD a1+8(FP), R0
21 MOVD a2+16(FP), R1
22 MOVD a3+24(FP), R2
23 MOVD $0, R3
24 MOVD $0, R4
25 MOVD $0, R5
26 MOVD trap+0(FP), R8 // syscall entry
27 SVC
28 MOVD R0, r1+32(FP) // r1
29 MOVD R1, r2+40(FP) // r2
30 BL runtime·exitsyscall(SB)
31 RET
32
33TEXT ·RawSyscall(SB),NOSPLIT,$0-56
34 B syscall·RawSyscall(SB)
35
36TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
37 B syscall·RawSyscall6(SB)
38
39TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48
40 MOVD a1+8(FP), R0
41 MOVD a2+16(FP), R1
42 MOVD a3+24(FP), R2
43 MOVD $0, R3
44 MOVD $0, R4
45 MOVD $0, R5
46 MOVD trap+0(FP), R8 // syscall entry
47 SVC
48 MOVD R0, r1+32(FP)
49 MOVD R1, r2+40(FP)
50 RET