diff options
author | Arnd Bergmann <arnd@arndb.de> | 2024-07-04 15:33:34 +0300 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2024-07-10 15:23:38 +0300 |
commit | e632bca07c8eef1de9dc50f4e4066c56e9d68b07 (patch) | |
tree | 1ada9ea0c4450a086fd39a229e396317cfe12119 /arch/arm64/tools | |
parent | 7fe33e9f662c0a2f5110be4afff0a24e0c123540 (diff) | |
download | linux-e632bca07c8eef1de9dc50f4e4066c56e9d68b07.tar.xz |
arm64: generate 64-bit syscall.tbl
Change the asm/unistd.h header for arm64 to no longer include
asm-generic/unistd.h itself, but instead generate both the asm/unistd.h
contents and the list of entry points using the syscall.tbl scripts that
we use on most other architectures.
Once his is done for the remaining architectures, the generic unistd.h
header can be removed and the generated tbl file put in its place.
The Makefile changes are more complex than they should be, I need
a little help to improve those. Ideally this should be done in an
architecture-independent way as well.
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm64/tools')
-rw-r--r-- | arch/arm64/tools/Makefile | 6 | ||||
l--------- | arch/arm64/tools/syscall_64.tbl | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm64/tools/Makefile b/arch/arm64/tools/Makefile index fa2251d9762d..c2b34e761006 100644 --- a/arch/arm64/tools/Makefile +++ b/arch/arm64/tools/Makefile @@ -3,12 +3,16 @@ gen := arch/$(ARCH)/include/generated kapi := $(gen)/asm -kapi-hdrs-y := $(kapi)/cpucap-defs.h $(kapi)/sysreg-defs.h +kapisyshdr-y := cpucap-defs.h sysreg-defs.h + +kapi-hdrs-y := $(addprefix $(kapi)/, $(kapisyshdr-y)) targets += $(addprefix ../../../, $(kapi-hdrs-y)) PHONY += kapi +all: $(syscall64) kapi + kapi: $(kapi-hdrs-y) quiet_cmd_gen_cpucaps = GEN $@ diff --git a/arch/arm64/tools/syscall_64.tbl b/arch/arm64/tools/syscall_64.tbl new file mode 120000 index 000000000000..63135cf34b65 --- /dev/null +++ b/arch/arm64/tools/syscall_64.tbl @@ -0,0 +1 @@ +../../../scripts/syscall.tbl
\ No newline at end of file |