x86: Generate system call tables and unistd_*.h from tables
Generate system call tables and unistd_*.h automatically from the
tables in arch/x86/syscalls. All other information, like NR_syscalls,
is auto-generated, some of which is in asm-offsets_*.c.
This allows us to keep all the system call information in one place,
and allows for kernel space and user space to see different
information; this is currently used for the ia32 system call numbers
when building the 64-bit kernel, but will be used by the x32 ABI in
the near future.
This also removes some gratuitious differences between i386, x86-64
and ia32; in particular, now all system call tables are generated with
the same mechanism.
Cc: H. J. Lu <hjl.tools@gmail.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Michal Marek <mmarek@suse.cz>
Signed-off-by:
H. Peter Anvin <hpa@linux.intel.com>
Showing
- arch/x86/Makefile 6 additions, 0 deletionsarch/x86/Makefile
- arch/x86/ia32/Makefile 1 addition, 1 deletionarch/x86/ia32/Makefile
- arch/x86/ia32/ia32entry.S 0 additions, 356 deletionsarch/x86/ia32/ia32entry.S
- arch/x86/ia32/syscall_ia32.c 25 additions, 0 deletionsarch/x86/ia32/syscall_ia32.c
- arch/x86/include/asm/Kbuild 3 additions, 2 deletionsarch/x86/include/asm/Kbuild
- arch/x86/include/asm/ia32_unistd.h 3 additions, 10 deletionsarch/x86/include/asm/ia32_unistd.h
- arch/x86/include/asm/unistd.h 50 additions, 4 deletionsarch/x86/include/asm/unistd.h
- arch/x86/include/asm/unistd_32.h 0 additions, 401 deletionsarch/x86/include/asm/unistd_32.h
- arch/x86/include/asm/unistd_64.h 0 additions, 732 deletionsarch/x86/include/asm/unistd_64.h
- arch/x86/kernel/Makefile 2 additions, 1 deletionarch/x86/kernel/Makefile
- arch/x86/kernel/asm-offsets_32.c 8 additions, 0 deletionsarch/x86/kernel/asm-offsets_32.c
- arch/x86/kernel/asm-offsets_64.c 12 additions, 7 deletionsarch/x86/kernel/asm-offsets_64.c
- arch/x86/kernel/entry_32.S 14 additions, 23 deletionsarch/x86/kernel/entry_32.S
- arch/x86/kernel/syscall_32.c 25 additions, 0 deletionsarch/x86/kernel/syscall_32.c
- arch/x86/kernel/syscall_64.c 5 additions, 9 deletionsarch/x86/kernel/syscall_64.c
- arch/x86/kernel/syscall_table_32.S 0 additions, 350 deletionsarch/x86/kernel/syscall_table_32.S
Loading
Please register or sign in to comment