aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/include/asm/unistd.h
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2021-05-28 12:46:14 +0900
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2021-06-01 11:17:24 +0200
commitfaf243ede96855067fa38f5b1595a4f0c61ed5c7 (patch)
treec354d85f5a8c850975e10bb2df4e6f39e5adc9f1 /arch/mips/include/asm/unistd.h
parentMIPS: Loongson64: Make some functions static in smp.c (diff)
downloadlinux-dev-faf243ede96855067fa38f5b1595a4f0c61ed5c7.tar.xz
linux-dev-faf243ede96855067fa38f5b1595a4f0c61ed5c7.zip
mips: syscalls: define syscall offsets directly in <asm/unistd.h>
There is no good reason to generate the syscall offset macros by scripting since they are not derived from the syscall tables. Define __NR_*_Linux macros directly in arch/mips/include/asm/unistd.h, and clean up the Makefile and the shell script. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/include/asm/unistd.h')
-rw-r--r--arch/mips/include/asm/unistd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/mips/include/asm/unistd.h b/arch/mips/include/asm/unistd.h
index 5d70babfc9ee..c2196b1b6604 100644
--- a/arch/mips/include/asm/unistd.h
+++ b/arch/mips/include/asm/unistd.h
@@ -17,6 +17,10 @@
#include <asm/unistd_nr_n64.h>
#include <asm/unistd_nr_o32.h>
+#define __NR_N32_Linux 6000
+#define __NR_64_Linux 5000
+#define __NR_O32_Linux 4000
+
#ifdef CONFIG_MIPS32_N32
#define NR_syscalls (__NR_N32_Linux + __NR_N32_Linux_syscalls)
#elif defined(CONFIG_64BIT)