Skip to content

Commit

Permalink
MIPS: Fix TIF_32BIT undefined problem when seccomp is disabled
Browse files Browse the repository at this point in the history
Signed-off-by: Zhang Le <r0bertz@gentoo.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Zhang Le authored and Ralf Baechle committed Mar 13, 2009
1 parent 041b623 commit 3b289d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 0 additions & 4 deletions arch/mips/include/asm/seccomp.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,13 @@
*/
#ifdef CONFIG_MIPS32_O32

#define TIF_32BIT TIF_32BIT_REGS

#define __NR_seccomp_read_32 4003
#define __NR_seccomp_write_32 4004
#define __NR_seccomp_exit_32 4001
#define __NR_seccomp_sigreturn_32 4193 /* rt_sigreturn */

#elif defined(CONFIG_MIPS32_N32)

#define TIF_32BIT _TIF_32BIT_ADDR

#define __NR_seccomp_read_32 6000
#define __NR_seccomp_write_32 6001
#define __NR_seccomp_exit_32 6058
Expand Down
6 changes: 6 additions & 0 deletions arch/mips/include/asm/thread_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_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_SIGPENDING (1<<TIF_SIGPENDING)
#define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED)
Expand Down

0 comments on commit 3b289d6

Please sign in to comment.