Commit c2901ba0 authored by Jan Kiszka's avatar Jan Kiszka

cobalt: x86: Use ipipe_root_nr_syscalls

Required to handle compat syscalls correctly.
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent ae41ff15
......@@ -43,4 +43,10 @@
smp_store_mb((tsk)->state, (state_value))
#endif
#include <linux/ipipe.h>
#ifndef ipipe_root_nr_syscalls
#define ipipe_root_nr_syscalls(ti) NR_syscalls
#endif
#endif /* !_COBALT_LINUX_WRAPPERS_H */
......@@ -646,7 +646,7 @@ ret_handled:
linux_syscall:
code = __xn_get_syscall_nr(regs);
if (code >= NR_syscalls)
if (code >= ipipe_root_nr_syscalls(current_thread_info()))
goto bad_syscall;
if (xnsched_root_p())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment