diff options
author | Andrew Pinski <apinski@cavium.com> | 2016-05-24 03:04:47 +0300 |
---|---|---|
committer | Christoph Muellner <christoph.muellner@theobroma-systems.com> | 2018-04-03 10:52:43 +0200 |
commit | ad6b3f6a0e309c717321bf15255a692dfe1a5cab (patch) | |
tree | 871959908e29c80b2239c4f5bc335571a34a69ea /arch/arm64/include/uapi/asm/unistd.h | |
parent | 77a43d50f8561c2d8285915351f82735e92479ac (diff) |
arm64: ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it
Add a separate syscall-table for ILP32, which dispatches either to native
LP64 system call implementation or to compat-syscalls, as appropriate.
Signed-off-by: Andrew Pinski <Andrew.Pinski@caviumnetworks.com>
Signed-off-by: Yury Norov <ynorov@caviumnetworks.com>
Signed-off-by: Bamvor Jian Zhang <bamvor.zhangjian@linaro.org>
Diffstat (limited to 'arch/arm64/include/uapi/asm/unistd.h')
-rw-r--r-- | arch/arm64/include/uapi/asm/unistd.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm64/include/uapi/asm/unistd.h b/arch/arm64/include/uapi/asm/unistd.h index 439b1c55c827..80f1cb4ae2e1 100644 --- a/arch/arm64/include/uapi/asm/unistd.h +++ b/arch/arm64/include/uapi/asm/unistd.h @@ -15,7 +15,19 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +/* + * Use AARCH32 interface for sys_sync_file_range() as it passes 64-bit arguments. + */ +#if defined(__ILP32__) || defined(__SYSCALL_COMPAT) +#define __ARCH_WANT_SYNC_FILE_RANGE2 +#endif + +/* + * AARCH64/ILP32 is introduced after next syscalls were deprecated. + */ +#if !(defined(__ILP32__) || defined(__SYSCALL_COMPAT)) #define __ARCH_WANT_RENAMEAT #define __ARCH_WANT_SET_GET_RLIMIT +#endif #include <asm-generic/unistd.h> |