Skip to content

Commit df86ddb

Browse files
masahir0yhdeller
authored andcommitted
parisc: syscalls: switch to generic syscalltbl.sh
Many architectures duplicate similar shell scripts. This commit converts parisc to use scripts/syscalltbl.sh. This also unifies syscall_table_64.h and syscall_table_c32.h. Signed-off-by: Masahiro Yamada <[email protected]> Acked-by: Helge Deller <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent 9f4ad9e commit df86ddb

File tree

4 files changed

+12
-60
lines changed

4 files changed

+12
-60
lines changed

arch/parisc/include/asm/Kbuild

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# SPDX-License-Identifier: GPL-2.0
22
generated-y += syscall_table_32.h
33
generated-y += syscall_table_64.h
4-
generated-y += syscall_table_c32.h
54
generic-y += kvm_para.h
65
generic-y += mcs_spinlock.h
76
generic-y += user.h

arch/parisc/kernel/syscall.S

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -919,24 +919,24 @@ ENTRY(lws_table)
919919
END(lws_table)
920920
/* End of lws table */
921921

922+
#ifdef CONFIG_64BIT
923+
#define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, compat)
924+
#else
925+
#define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, native)
926+
#endif
922927
#define __SYSCALL(nr, entry) ASM_ULONG_INSN entry
923928
.align 8
924929
ENTRY(sys_call_table)
925930
.export sys_call_table,data
926-
#ifdef CONFIG_64BIT
927-
#include <asm/syscall_table_c32.h> /* Compat syscalls */
928-
#else
929-
#include <asm/syscall_table_32.h> /* 32-bit native syscalls */
930-
#endif
931+
#include <asm/syscall_table_32.h> /* 32-bit syscalls */
931932
END(sys_call_table)
932933

933934
#ifdef CONFIG_64BIT
934935
.align 8
935936
ENTRY(sys_call_table64)
936-
#include <asm/syscall_table_64.h> /* 64-bit native syscalls */
937+
#include <asm/syscall_table_64.h> /* 64-bit syscalls */
937938
END(sys_call_table64)
938939
#endif
939-
#undef __SYSCALL
940940

941941
/*
942942
All light-weight-syscall atomic operations
@@ -961,5 +961,3 @@ END(lws_lock_start)
961961
.previous
962962

963963
.end
964-
965-

arch/parisc/kernel/syscalls/Makefile

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ _dummy := $(shell [ -d '$(uapi)' ] || mkdir -p '$(uapi)') \
77

88
syscall := $(src)/syscall.tbl
99
syshdr := $(srctree)/$(src)/syscallhdr.sh
10-
systbl := $(srctree)/$(src)/syscalltbl.sh
10+
systbl := $(srctree)/scripts/syscalltbl.sh
1111

1212
quiet_cmd_syshdr = SYSHDR $@
1313
cmd_syshdr = $(CONFIG_SHELL) '$(syshdr)' '$<' '$@' \
@@ -16,10 +16,7 @@ quiet_cmd_syshdr = SYSHDR $@
1616
'$(syshdr_offset_$(basetarget))'
1717

1818
quiet_cmd_systbl = SYSTBL $@
19-
cmd_systbl = $(CONFIG_SHELL) '$(systbl)' '$<' '$@' \
20-
'$(systbl_abis_$(basetarget))' \
21-
'$(systbl_abi_$(basetarget))' \
22-
'$(systbl_offset_$(basetarget))'
19+
cmd_systbl = $(CONFIG_SHELL) $(systbl) --abis $(abis) $< $@
2320

2421
syshdr_abis_unistd_32 := common,32
2522
$(uapi)/unistd_32.h: $(syscall) $(syshdr) FORCE
@@ -29,23 +26,17 @@ syshdr_abis_unistd_64 := common,64
2926
$(uapi)/unistd_64.h: $(syscall) $(syshdr) FORCE
3027
$(call if_changed,syshdr)
3128

32-
systbl_abis_syscall_table_32 := common,32
29+
$(kapi)/syscall_table_32.h: abis := common,32
3330
$(kapi)/syscall_table_32.h: $(syscall) $(systbl) FORCE
3431
$(call if_changed,systbl)
3532

36-
systbl_abis_syscall_table_64 := common,64
33+
$(kapi)/syscall_table_64.h: abis := common,64
3734
$(kapi)/syscall_table_64.h: $(syscall) $(systbl) FORCE
3835
$(call if_changed,systbl)
3936

40-
systbl_abis_syscall_table_c32 := common,32
41-
systbl_abi_syscall_table_c32 := c32
42-
$(kapi)/syscall_table_c32.h: $(syscall) $(systbl) FORCE
43-
$(call if_changed,systbl)
44-
4537
uapisyshdr-y += unistd_32.h unistd_64.h
4638
kapisyshdr-y += syscall_table_32.h \
47-
syscall_table_64.h \
48-
syscall_table_c32.h
39+
syscall_table_64.h
4940

5041
uapisyshdr-y := $(addprefix $(uapi)/, $(uapisyshdr-y))
5142
kapisyshdr-y := $(addprefix $(kapi)/, $(kapisyshdr-y))

arch/parisc/kernel/syscalls/syscalltbl.sh

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)