aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/include/uapi/asm/Kbuild
diff options
context:
space:
mode:
authorFiroz Khan <firoz.khan@linaro.org>2018-11-01 19:18:49 +0530
committerArnd Bergmann <arnd@arndb.de>2018-12-19 17:54:15 +0100
commita0239c8eb9363d4c2c6d6411bff4e3ea744e3164 (patch)
treee9f9590e6d5deff3aef2c1bbbe777cef399ca79b /arch/sh/include/uapi/asm/Kbuild
parentsh: add __NR_syscalls along with NR_syscalls (diff)
downloadlinux-dev-a0239c8eb9363d4c2c6d6411bff4e3ea744e3164.tar.xz
linux-dev-a0239c8eb9363d4c2c6d6411bff4e3ea744e3164.zip
sh: add system call table generation support
The system call tables are in different format in all architecture and it will be difficult to manually add, modify or delete the syscall table entries in the res- pective files. To make it easy by keeping a script and which will generate the uapi header and syscall table file. This change will also help to unify the implemen- tation across all architectures. The system call table generation script is added in kernel/syscalls directory which contain the scripts to generate both uapi header file and system call table files. The syscall.tbl will be input for the scripts. syscall.tbl contains the list of available system calls along with system call number and corresponding entry point. Add a new system call in this architecture will be possible by adding new entry in the syscall.tbl file. Adding a new table entry consisting of: - System call number. - ABI. - System call name. - Entry point name. syscallhdr.sh and syscalltbl.sh will generate uapi header unistd_32.h and syscall_table.h files respectively. Both .sh files will parse the content syscall.tbl to generate the header and table files. unistd_32.h will be included by uapi/asm/unistd.h and syscall_table.h is included by kernel/syscall_32.S - the real system call table. Please note, this support is only available for 32-bit kernel, not 64-bit kernel. As I came across the 64-bit kernel is not active for long time. ARM, s390 and x86 architecuture does have similar support. I leverage their implementation to come up with a generic solution. Signed-off-by: Firoz Khan <firoz.khan@linaro.org> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions