OSDN Git Service

ARM: convert to generated system call tables
authorRussell King <rmk+kernel@armlinux.org.uk>
Tue, 18 Oct 2016 18:57:01 +0000 (19:57 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Tue, 18 Oct 2016 20:34:06 +0000 (21:34 +0100)
commit96a8fae0fe094b6a26a3ec88b2f097418f269cfe
tree611c87ac99ac3ee4407d4d37b6c77d5274e3c2e1
parent4e2648db9c5f7b2281551694597102612f54460d
ARM: convert to generated system call tables

Convert ARM to use a similar mechanism to x86 to generate the unistd.h
system call numbers and the various kernel system call tables.  This
means that rather than having to edit three places (asm/unistd.h for
the total number of system calls, uapi/asm/unistd.h for the system call
numbers, and arch/arm/kernel/calls.S for the call table) we have only
one place to edit, making the process much more simple.

The scripts have knowledge of the table padding requirements, so there's
no need to worry about __NR_syscalls not fitting within the immediate
constant field of ALU instructions anymore.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
12 files changed:
arch/arm/Makefile
arch/arm/include/asm/Kbuild
arch/arm/include/asm/unistd.h
arch/arm/include/uapi/asm/Kbuild
arch/arm/include/uapi/asm/unistd.h
arch/arm/kernel/calls.S [deleted file]
arch/arm/kernel/entry-common.S
arch/arm/tools/Makefile
arch/arm/tools/syscall.tbl [new file with mode: 0644]
arch/arm/tools/syscallhdr.sh [new file with mode: 0644]
arch/arm/tools/syscallnr.sh [new file with mode: 0644]
arch/arm/tools/syscalltbl.sh [new file with mode: 0644]