diff options
Diffstat (limited to 'arch/arm64/include')
-rw-r--r-- | arch/arm64/include/asm/stat.h | 62 | ||||
-rw-r--r-- | arch/arm64/include/asm/statfs.h | 23 | ||||
-rw-r--r-- | arch/arm64/include/asm/syscalls.h | 40 | ||||
-rw-r--r-- | arch/arm64/include/asm/unistd.h | 27 |
4 files changed, 152 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/stat.h b/arch/arm64/include/asm/stat.h new file mode 100644 index 000000000000..d87225cbead8 --- /dev/null +++ b/arch/arm64/include/asm/stat.h | |||
@@ -0,0 +1,62 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2012 ARM Ltd. | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License version 2 as | ||
6 | * published by the Free Software Foundation. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | #ifndef __ASM_STAT_H | ||
17 | #define __ASM_STAT_H | ||
18 | |||
19 | #include <asm-generic/stat.h> | ||
20 | |||
21 | #if defined(__KERNEL__) && defined(CONFIG_COMPAT) | ||
22 | |||
23 | #include <asm/compat.h> | ||
24 | |||
25 | /* | ||
26 | * struct stat64 is needed for compat tasks only. Its definition is different | ||
27 | * from the generic struct stat64. | ||
28 | */ | ||
29 | struct stat64 { | ||
30 | compat_u64 st_dev; | ||
31 | unsigned char __pad0[4]; | ||
32 | |||
33 | #define STAT64_HAS_BROKEN_ST_INO 1 | ||
34 | compat_ulong_t __st_ino; | ||
35 | compat_uint_t st_mode; | ||
36 | compat_uint_t st_nlink; | ||
37 | |||
38 | compat_ulong_t st_uid; | ||
39 | compat_ulong_t st_gid; | ||
40 | |||
41 | compat_u64 st_rdev; | ||
42 | unsigned char __pad3[4]; | ||
43 | |||
44 | compat_s64 st_size; | ||
45 | compat_ulong_t st_blksize; | ||
46 | compat_u64 st_blocks; /* Number of 512-byte blocks allocated. */ | ||
47 | |||
48 | compat_ulong_t st_atime; | ||
49 | compat_ulong_t st_atime_nsec; | ||
50 | |||
51 | compat_ulong_t st_mtime; | ||
52 | compat_ulong_t st_mtime_nsec; | ||
53 | |||
54 | compat_ulong_t st_ctime; | ||
55 | compat_ulong_t st_ctime_nsec; | ||
56 | |||
57 | compat_u64 st_ino; | ||
58 | }; | ||
59 | |||
60 | #endif | ||
61 | |||
62 | #endif | ||
diff --git a/arch/arm64/include/asm/statfs.h b/arch/arm64/include/asm/statfs.h new file mode 100644 index 000000000000..6f6219050978 --- /dev/null +++ b/arch/arm64/include/asm/statfs.h | |||
@@ -0,0 +1,23 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2012 ARM Ltd. | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License version 2 as | ||
6 | * published by the Free Software Foundation. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | #ifndef __ASM_STATFS_H | ||
17 | #define __ASM_STATFS_H | ||
18 | |||
19 | #define ARCH_PACK_COMPAT_STATFS64 __attribute__((packed,aligned(4))) | ||
20 | |||
21 | #include <asm-generic/statfs.h> | ||
22 | |||
23 | #endif | ||
diff --git a/arch/arm64/include/asm/syscalls.h b/arch/arm64/include/asm/syscalls.h new file mode 100644 index 000000000000..09ff33572aab --- /dev/null +++ b/arch/arm64/include/asm/syscalls.h | |||
@@ -0,0 +1,40 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2012 ARM Ltd. | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License version 2 as | ||
6 | * published by the Free Software Foundation. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | #ifndef __ASM_SYSCALLS_H | ||
17 | #define __ASM_SYSCALLS_H | ||
18 | |||
19 | #include <linux/linkage.h> | ||
20 | #include <linux/compiler.h> | ||
21 | #include <linux/signal.h> | ||
22 | |||
23 | /* | ||
24 | * System call wrappers implemented in kernel/entry.S. | ||
25 | */ | ||
26 | asmlinkage long sys_execve_wrapper(const char __user *filename, | ||
27 | const char __user *const __user *argv, | ||
28 | const char __user *const __user *envp); | ||
29 | asmlinkage long sys_clone_wrapper(unsigned long clone_flags, | ||
30 | unsigned long newsp, | ||
31 | void __user *parent_tid, | ||
32 | unsigned long tls_val, | ||
33 | void __user *child_tid); | ||
34 | asmlinkage long sys_rt_sigreturn_wrapper(void); | ||
35 | asmlinkage long sys_sigaltstack_wrapper(const stack_t __user *uss, | ||
36 | stack_t __user *uoss); | ||
37 | |||
38 | #include <asm-generic/syscalls.h> | ||
39 | |||
40 | #endif /* __ASM_SYSCALLS_H */ | ||
diff --git a/arch/arm64/include/asm/unistd.h b/arch/arm64/include/asm/unistd.h new file mode 100644 index 000000000000..fe18a683274f --- /dev/null +++ b/arch/arm64/include/asm/unistd.h | |||
@@ -0,0 +1,27 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2012 ARM Ltd. | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License version 2 as | ||
6 | * published by the Free Software Foundation. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | #if !defined(__ASM_UNISTD_H) || defined(__SYSCALL) | ||
17 | #define __ASM_UNISTD_H | ||
18 | |||
19 | #ifndef __SYSCALL_COMPAT | ||
20 | #include <asm-generic/unistd.h> | ||
21 | #endif | ||
22 | |||
23 | #if defined(__KERNEL__) && defined(CONFIG_COMPAT) | ||
24 | #include <asm/unistd32.h> | ||
25 | #endif | ||
26 | |||
27 | #endif /* __ASM_UNISTD_H */ | ||