| .. | .. |
|---|
| 10 | 10 | * Copyright (C) 2002 David Howells (dhowells@redhat.com) |
|---|
| 11 | 11 | * - Incorporating suggestions made by Linus Torvalds and Dave Miller |
|---|
| 12 | 12 | */ |
|---|
| 13 | | -#ifdef __KERNEL__ |
|---|
| 14 | | - |
|---|
| 15 | 13 | #include <asm/page.h> |
|---|
| 16 | 14 | |
|---|
| 17 | 15 | /* |
|---|
| .. | .. |
|---|
| 70 | 68 | static inline struct thread_info *current_thread_info(void) |
|---|
| 71 | 69 | { |
|---|
| 72 | 70 | struct thread_info *ti; |
|---|
| 73 | | -#if defined(CONFIG_SUPERH64) |
|---|
| 74 | | - __asm__ __volatile__ ("getcon cr17, %0" : "=r" (ti)); |
|---|
| 75 | | -#elif defined(CONFIG_CPU_HAS_SR_RB) |
|---|
| 71 | +#if defined(CONFIG_CPU_HAS_SR_RB) |
|---|
| 76 | 72 | __asm__ __volatile__ ("stc r7_bank, %0" : "=r" (ti)); |
|---|
| 77 | 73 | #else |
|---|
| 78 | 74 | unsigned long __dummy; |
|---|
| .. | .. |
|---|
| 109 | 105 | #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ |
|---|
| 110 | 106 | #define TIF_SIGPENDING 1 /* signal pending */ |
|---|
| 111 | 107 | #define TIF_NEED_RESCHED 2 /* rescheduling necessary */ |
|---|
| 108 | +#define TIF_NOTIFY_SIGNAL 3 /* signal notifications exist */ |
|---|
| 112 | 109 | #define TIF_SINGLESTEP 4 /* singlestepping active */ |
|---|
| 113 | 110 | #define TIF_SYSCALL_AUDIT 5 /* syscall auditing active */ |
|---|
| 114 | 111 | #define TIF_SECCOMP 6 /* secure computing */ |
|---|
| .. | .. |
|---|
| 120 | 117 | #define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE) |
|---|
| 121 | 118 | #define _TIF_SIGPENDING (1 << TIF_SIGPENDING) |
|---|
| 122 | 119 | #define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED) |
|---|
| 120 | +#define _TIF_NOTIFY_SIGNAL (1 << TIF_NOTIFY_SIGNAL) |
|---|
| 123 | 121 | #define _TIF_SINGLESTEP (1 << TIF_SINGLESTEP) |
|---|
| 124 | 122 | #define _TIF_SYSCALL_AUDIT (1 << TIF_SYSCALL_AUDIT) |
|---|
| 125 | 123 | #define _TIF_SECCOMP (1 << TIF_SECCOMP) |
|---|
| .. | .. |
|---|
| 136 | 134 | #define _TIF_ALLWORK_MASK (_TIF_SYSCALL_TRACE | _TIF_SIGPENDING | \ |
|---|
| 137 | 135 | _TIF_NEED_RESCHED | _TIF_SYSCALL_AUDIT | \ |
|---|
| 138 | 136 | _TIF_SINGLESTEP | _TIF_NOTIFY_RESUME | \ |
|---|
| 139 | | - _TIF_SYSCALL_TRACEPOINT) |
|---|
| 137 | + _TIF_SYSCALL_TRACEPOINT | _TIF_NOTIFY_SIGNAL) |
|---|
| 140 | 138 | |
|---|
| 141 | 139 | /* work to do on interrupt/exception return */ |
|---|
| 142 | 140 | #define _TIF_WORK_MASK (_TIF_ALLWORK_MASK & ~(_TIF_SYSCALL_TRACE | \ |
|---|
| .. | .. |
|---|
| 172 | 170 | } |
|---|
| 173 | 171 | |
|---|
| 174 | 172 | #endif /* !__ASSEMBLY__ */ |
|---|
| 175 | | - |
|---|
| 176 | | -#endif /* __KERNEL__ */ |
|---|
| 177 | | - |
|---|
| 178 | 173 | #endif /* __ASM_SH_THREAD_INFO_H */ |
|---|