Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

hexagon: use new system call table

The uapi/asm/unistd_32.h and asm/syscall_table_32.h headers can now be
generated from scripts/syscall.tbl, which makes this consistent with
the other architectures that have their own syscall.tbl.

The time32, stat64, rlimit and renameat entries in the syscall_abis_32
line are for system calls that were part of the generic ABI when
arch/hexagon got added but are no longer enabled by default for new
architectures.

As a side-effect, calling an unimplemented syscall now return -ENOSYS
rather than branching into a NULL pointer.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>

+26 -15
+2
arch/hexagon/include/asm/Kbuild
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 + syscall-y += syscall_table_32.h 3 + 2 4 generic-y += extable.h 3 5 generic-y += iomap.h 4 6 generic-y += kvm_para.h
+10
arch/hexagon/include/asm/unistd.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 + 3 + #define __ARCH_WANT_STAT64 4 + #define __ARCH_WANT_SYS_CLONE 5 + #define __ARCH_WANT_SYS_VFORK 6 + #define __ARCH_WANT_SYS_FORK 7 + 8 + #define __ARCH_BROKEN_SYS_CLONE3 9 + 10 + #include <uapi/asm/unistd.h>
+2
arch/hexagon/include/uapi/asm/Kbuild
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 + syscall-y += unistd_32.h 3 + 2 4 generic-y += ucontext.h
+3 -13
arch/hexagon/include/uapi/asm/unistd.h
··· 27 27 * See also: syscalltab.c 28 28 */ 29 29 30 - #define sys_mmap2 sys_mmap_pgoff 31 - #define __ARCH_WANT_RENAMEAT 32 - #define __ARCH_WANT_STAT64 33 - #define __ARCH_WANT_SET_GET_RLIMIT 34 - #define __ARCH_WANT_SYS_EXECVE 35 - #define __ARCH_WANT_SYS_CLONE 36 - #define __ARCH_WANT_SYS_VFORK 37 - #define __ARCH_WANT_SYS_FORK 38 - #define __ARCH_WANT_TIME32_SYSCALLS 39 - #define __ARCH_WANT_SYNC_FILE_RANGE2 30 + #include <asm/unistd_32.h> 40 31 41 - #define __ARCH_BROKEN_SYS_CLONE3 42 - 43 - #include <asm-generic/unistd.h> 32 + #define __NR_sync_file_range2 84 33 + #undef __NR_sync_file_range
+3
arch/hexagon/kernel/Makefile.syscalls
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + 3 + syscall_abis_32 += hexagon time32 stat64 rlimit renameat
+6 -2
arch/hexagon/kernel/syscalltab.c
··· 11 11 12 12 #include <asm/syscall.h> 13 13 14 - #undef __SYSCALL 15 14 #define __SYSCALL(nr, call) [nr] = (call), 15 + #define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, native) 16 + 17 + #define sys_mmap2 sys_mmap_pgoff 16 18 17 19 SYSCALL_DEFINE6(hexagon_fadvise64_64, int, fd, int, advice, 18 20 SC_ARG64(offset), SC_ARG64(len)) ··· 23 21 } 24 22 #define sys_fadvise64_64 sys_hexagon_fadvise64_64 25 23 24 + #define sys_sync_file_range sys_sync_file_range2 25 + 26 26 void *sys_call_table[__NR_syscalls] = { 27 - #include <asm/unistd.h> 27 + #include <asm/syscall_table_32.h> 28 28 };