syscalls: add generic scripts/syscall.tbl
authorArnd Bergmann <arnd@arndb.de>
Wed, 3 Jul 2024 07:43:01 +0000 (09:43 +0200)
committerArnd Bergmann <arnd@arndb.de>
Thu, 4 Jul 2024 14:00:29 +0000 (16:00 +0200)
commit4fe53bf2ba0a45cd708dcd4c3e8e1950731b3d4d
treedd1fb23e1184904a856ecd34a8afdb5c3cae02c0
parent22a40d14b572deb80c0648557f4bd502d7e83826
syscalls: add generic scripts/syscall.tbl

The asm-generic/unistd.h header still follows the old style of defining
system call numbers and the table. Most architectures got the new
syscall.tbl format as part of the y2038 conversion back in 2018, but
the newer architectures that share a single table never did.

I did a semi-automated conversion of the asm-generic/unistd.h contents
into a syscall.tbl format, using the ABI field to take care of all
the relevant differences that are encoded using #ifdef checks in the
existing header.

Conversion of the architectures is done one at a time in order to
be able to review or revert them as needed.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
scripts/syscall.tbl [new file with mode: 0644]