From 3ec03c1a4e71350dc16e67934891d265a868d9a1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 8 Dec 2020 15:03:03 +0100 Subject: [PATCH] basic/missing_syscall: fix syscall numbers for mips* Based on cd2065989163a5b6f71c8f1e4a8d73f1be63a52b. --- src/basic/missing_syscall.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/basic/missing_syscall.h b/src/basic/missing_syscall.h index 212f5907af..53c549d20c 100644 --- a/src/basic/missing_syscall.h +++ b/src/basic/missing_syscall.h @@ -538,6 +538,18 @@ static inline long missing_get_mempolicy(int *mode, unsigned long *nodemask, /* should be always defined, see kernel 39036cd2727395c3369b1051005da74059a85317 */ # if defined(__alpha__) # define __NR_pidfd_send_signal 534 +# elif defined _MIPS_SIM +# if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */ +# define systemd_NR_pidfd_send_signal (424 + 4000) +# endif +# if _MIPS_SIM == _MIPS_SIM_NABI32 /* n32 */ +# define systemd_NR_pidfd_send_signal (424 + 6000) +# endif +# if _MIPS_SIM == _MIPS_SIM_ABI64 /* n64 */ +# define systemd_NR_pidfd_send_signal (424 + 5000) +# endif +# elif defined __ia64__ +# define systemd_NR_pidfd_send_signal (424 + 1024) # else # define __NR_pidfd_send_signal 424 # endif @@ -563,6 +575,18 @@ static inline int missing_pidfd_send_signal(int fd, int sig, siginfo_t *info, un /* should be always defined, see kernel 7615d9e1780e26e0178c93c55b73309a5dc093d7 */ # if defined(__alpha__) # define __NR_pidfd_open 544 +# elif defined _MIPS_SIM +# if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */ +# define systemd_NR_pidfd_open (434 + 4000) +# endif +# if _MIPS_SIM == _MIPS_SIM_NABI32 /* n32 */ +# define systemd_NR_pidfd_open (434 + 6000) +# endif +# if _MIPS_SIM == _MIPS_SIM_ABI64 /* n64 */ +# define systemd_NR_pidfd_open (434 + 5000) +# endif +# elif defined __ia64__ +# define systemd_NR_pidfd_open (434 + 1024) # else # define __NR_pidfd_open 434 # endif -- 2.25.1