diff options
| author | Paul Mackerras <paulus@samba.org> | 2003-06-24 04:19:40 +1000 |
|---|---|---|
| committer | Paul Mackerras <paulus@samba.org> | 2003-06-24 04:19:40 +1000 |
| commit | 6c2d7826656a5178af5c41941c88c62d87f80619 (patch) | |
| tree | cfc2b1c68540af06488073dd6e8e2635ab18c8a4 /include/asm-ppc | |
| parent | 6c7a48fb33aaa6f233197a15eef3a7ca95f6c589 (diff) | |
| parent | 805901a2f8a82f45ad57011747ced592d85c31d0 (diff) | |
Merge samba.org:/stuff/paulus/kernel/linux-2.5
into samba.org:/stuff/paulus/kernel/for-linus-ppc
Diffstat (limited to 'include/asm-ppc')
| -rw-r--r-- | include/asm-ppc/ptrace.h | 2 | ||||
| -rw-r--r-- | include/asm-ppc/thread_info.h | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-ppc/ptrace.h b/include/asm-ppc/ptrace.h index 6c3a16414a56..a157e6ce6b67 100644 --- a/include/asm-ppc/ptrace.h +++ b/include/asm-ppc/ptrace.h @@ -49,6 +49,8 @@ struct pt_regs { #define instruction_pointer(regs) ((regs)->nip) #define user_mode(regs) (((regs)->msr & MSR_PR) != 0) +#define force_successful_syscall_return() set_thread_flag(TIF_FORCE_NOERROR) + /* * We use the least-significant bit of the trap field to indicate * whether we have saved the full set of registers, or only a diff --git a/include/asm-ppc/thread_info.h b/include/asm-ppc/thread_info.h index 4d77601389f9..b3800b0cd2cb 100644 --- a/include/asm-ppc/thread_info.h +++ b/include/asm-ppc/thread_info.h @@ -86,6 +86,8 @@ static inline struct thread_info *current_thread_info(void) #define TIF_NEED_RESCHED 3 /* rescheduling necessary */ #define TIF_POLLING_NRFLAG 4 /* true if poll_idle() is polling TIF_NEED_RESCHED */ +#define TIF_FORCE_NOERROR 5 /* don't return error from current + syscall even if result < 0 */ /* as above, but as bit values */ #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) @@ -93,6 +95,7 @@ static inline struct thread_info *current_thread_info(void) #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) #define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG) +#define _TIF_FORCE_NOERROR (1<<TIF_FORCE_NOERROR) #endif /* __KERNEL__ */ |
