Commit fab9bf58 authored by Jan Kiszka's avatar Jan Kiszka
Browse files

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 dc459dd7
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
#define __xn_rootcall_p(__regs, __code) \ #define __xn_rootcall_p(__regs, __code) \
({ \ ({ \
*(__code) = __xn_reg_sys(__regs); \ *(__code) = __xn_reg_sys(__regs); \
*(__code) < NR_syscalls; \ *(__code) < ipipe_root_nr_syscalls(current_thread_info()); \
}) })
static inline void __xn_error_return(struct pt_regs *regs, int v) static inline void __xn_error_return(struct pt_regs *regs, int v)
......
...@@ -43,4 +43,10 @@ ...@@ -43,4 +43,10 @@
smp_store_mb((tsk)->state, (state_value)) smp_store_mb((tsk)->state, (state_value))
#endif #endif
#include <linux/ipipe.h>
#ifndef ipipe_root_nr_syscalls
#define ipipe_root_nr_syscalls(ti) NR_syscalls
#endif
#endif /* !_COBALT_LINUX_WRAPPERS_H */ #endif /* !_COBALT_LINUX_WRAPPERS_H */
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