1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21#include <linux/linkage.h>
22
23#include <asm/assembler.h>
24#include <asm/asm-offsets.h>
25
26
27
28
29
30compat_sys_sigreturn_wrapper:
31 mov x0, sp
32 mov x27,
33 b compat_sys_sigreturn
34ENDPROC(compat_sys_sigreturn_wrapper)
35
36compat_sys_rt_sigreturn_wrapper:
37 mov x0, sp
38 mov x27,
39 b compat_sys_rt_sigreturn
40ENDPROC(compat_sys_rt_sigreturn_wrapper)
41
42compat_sys_statfs64_wrapper:
43 mov w3,
44 cmp w1,
45 csel w1, w3, w1, eq
46 b compat_sys_statfs64
47ENDPROC(compat_sys_statfs64_wrapper)
48
49compat_sys_fstatfs64_wrapper:
50 mov w3,
51 cmp w1,
52 csel w1, w3, w1, eq
53 b compat_sys_fstatfs64
54ENDPROC(compat_sys_fstatfs64_wrapper)
55
56
57
58
59
60
61compat_sys_pread64_wrapper:
62 regs_to_64 x3, x4, x5
63 b sys_pread64
64ENDPROC(compat_sys_pread64_wrapper)
65
66compat_sys_pwrite64_wrapper:
67 regs_to_64 x3, x4, x5
68 b sys_pwrite64
69ENDPROC(compat_sys_pwrite64_wrapper)
70
71compat_sys_truncate64_wrapper:
72 regs_to_64 x1, x2, x3
73 b sys_truncate
74ENDPROC(compat_sys_truncate64_wrapper)
75
76compat_sys_ftruncate64_wrapper:
77 regs_to_64 x1, x2, x3
78 b sys_ftruncate
79ENDPROC(compat_sys_ftruncate64_wrapper)
80
81compat_sys_readahead_wrapper:
82 regs_to_64 x1, x2, x3
83 mov w2, w4
84 b sys_readahead
85ENDPROC(compat_sys_readahead_wrapper)
86
87compat_sys_fadvise64_64_wrapper:
88 mov w6, w1
89 regs_to_64 x1, x2, x3
90 regs_to_64 x2, x4, x5
91 mov w3, w6
92 b sys_fadvise64_64
93ENDPROC(compat_sys_fadvise64_64_wrapper)
94
95compat_sys_sync_file_range2_wrapper:
96 regs_to_64 x2, x2, x3
97 regs_to_64 x3, x4, x5
98 b sys_sync_file_range2
99ENDPROC(compat_sys_sync_file_range2_wrapper)
100
101compat_sys_fallocate_wrapper:
102 regs_to_64 x2, x2, x3
103 regs_to_64 x3, x4, x5
104 b sys_fallocate
105ENDPROC(compat_sys_fallocate_wrapper)
106
107#undef __SYSCALL
108#define __SYSCALL(x, y) .quad y
109
110
111
112
113 .align 12
114ENTRY(compat_sys_call_table)
115#include <asm/unistd32.h>
116