Commit 3b289d6e authored by Zhang Le's avatar Zhang Le Committed by Ralf Baechle

MIPS: Fix TIF_32BIT undefined problem when seccomp is disabled

Signed-off-by: default avatarZhang Le <r0bertz@gentoo.org>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 041b6237
...@@ -15,8 +15,6 @@ ...@@ -15,8 +15,6 @@
*/ */
#ifdef CONFIG_MIPS32_O32 #ifdef CONFIG_MIPS32_O32
#define TIF_32BIT TIF_32BIT_REGS
#define __NR_seccomp_read_32 4003 #define __NR_seccomp_read_32 4003
#define __NR_seccomp_write_32 4004 #define __NR_seccomp_write_32 4004
#define __NR_seccomp_exit_32 4001 #define __NR_seccomp_exit_32 4001
...@@ -24,8 +22,6 @@ ...@@ -24,8 +22,6 @@
#elif defined(CONFIG_MIPS32_N32) #elif defined(CONFIG_MIPS32_N32)
#define TIF_32BIT _TIF_32BIT_ADDR
#define __NR_seccomp_read_32 6000 #define __NR_seccomp_read_32 6000
#define __NR_seccomp_write_32 6001 #define __NR_seccomp_write_32 6001
#define __NR_seccomp_exit_32 6058 #define __NR_seccomp_exit_32 6058
......
...@@ -127,6 +127,12 @@ register struct thread_info *__current_thread_info __asm__("$28"); ...@@ -127,6 +127,12 @@ register struct thread_info *__current_thread_info __asm__("$28");
#define TIF_LOAD_WATCH 25 /* If set, load watch registers */ #define TIF_LOAD_WATCH 25 /* If set, load watch registers */
#define TIF_SYSCALL_TRACE 31 /* syscall trace active */ #define TIF_SYSCALL_TRACE 31 /* syscall trace active */
#ifdef CONFIG_MIPS32_O32
#define TIF_32BIT TIF_32BIT_REGS
#elif defined(CONFIG_MIPS32_N32)
#define TIF_32BIT _TIF_32BIT_ADDR
#endif /* CONFIG_MIPS32_O32 */
#define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE)
#define _TIF_SIGPENDING (1<<TIF_SIGPENDING) #define _TIF_SIGPENDING (1<<TIF_SIGPENDING)
#define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED)
......
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