--- zzzz-none-000/linux-2.6.32.61/arch/mips/include/asm/thread_info.h 2013-06-10 09:43:48.000000000 +0000 +++ ar9-7330-650/linux-2.6.32.61/arch/mips/include/asm/thread_info.h 2013-07-10 14:09:06.000000000 +0000 @@ -82,6 +82,11 @@ #define THREAD_SIZE_ORDER (0) #endif +#ifdef CONFIG_THREAD_SIZE_ORDER +#undef THREAD_SIZE_ORDER +#define THREAD_SIZE_ORDER (CONFIG_THREAD_SIZE_ORDER) +#endif /*--- #ifdef CONFIG_THREAD_SIZE_ORDER ---*/ + #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) #define THREAD_MASK (THREAD_SIZE - 1UL) @@ -147,9 +152,13 @@ /* work to do on interrupt/exception return */ #define _TIF_WORK_MASK (0x0000ffef & ~_TIF_SECCOMP) +#define _TIF_WORK_SYSCALL_EXIT (_TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT) /* work to do on any return to u-space */ #define _TIF_ALLWORK_MASK (0x8000ffff & ~_TIF_SECCOMP) +/* work to do on any return to u-space */ + + #endif /* __KERNEL__ */ #endif /* _ASM_THREAD_INFO_H */