Re: [PATCH 2/2] MIPS: set NR_syscall_tables appropriately

From
Ralf Baechle <hidden>
Date
2016-09-27 12:04:58
Also in
lkml
Reply to
Marcin Nowakowski, 2016-08-29
On Mon, Aug 29, 2016 at 11:30:07AM +0200, Marcin Nowakowski wrote:
quoted hunk ↗ jump to hunk
Depending on the kernel configuration, up to 3 syscall tables can be
used in parallel - so set the number properly to ensure syscall tracing
is set up properly.

Signed-off-by: Marcin Nowakowski <redacted>
---
 arch/mips/include/asm/unistd.h | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/arch/mips/include/asm/unistd.h b/arch/mips/include/asm/unistd.h
index e558130..71162f3d 100644
--- a/arch/mips/include/asm/unistd.h
+++ b/arch/mips/include/asm/unistd.h
@@ -22,6 +22,10 @@
 #define NR_syscalls  (__NR_O32_Linux + __NR_O32_Linux_syscalls)
 #endif
 
+#define NR_syscall_tables (1 + \
+	IS_ENABLED(CONFIG_MIPS32_O32) + \
+	IS_ENABLED(CONFIG_MIPS32_N32))
+
 #ifndef __ASSEMBLY__
NR_syscall_tables is a new symbol but I don't see any users of this
symbol?

  Ralf
Thread (3 messages) 3 messages, 2 authors, last reply 2016-09-28
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help