Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54257
b: refs/heads/master
c: ed58a59
h: refs/heads/master
i:
  54255: 2434e6a
v: v3
  • Loading branch information
Ivan Kokshaysky authored and Linus Torvalds committed May 7, 2007
1 parent a95a177 commit d184889
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eb2bce7f5e7ac1ca6da434461217fadf3c688d2c
refs/heads/master: ed58a593dcf6bb9853f711e56f8618f84b7b8cb2
22 changes: 22 additions & 0 deletions trunk/include/asm-alpha/thread_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,27 @@ register struct thread_info *__current_thread_info __asm__("$8");
#define _TIF_ALLWORK_MASK (_TIF_WORK_MASK \
| _TIF_SYSCALL_TRACE)

#define ALPHA_UAC_SHIFT 6
#define ALPHA_UAC_MASK (1 << TIF_UAC_NOPRINT | 1 << TIF_UAC_NOFIX | \
1 << TIF_UAC_SIGBUS)

#define SET_UNALIGN_CTL(task,value) ({ \
(task)->thread_info->flags = (((task)->thread_info->flags & \
~ALPHA_UAC_MASK) \
| (((value) << ALPHA_UAC_SHIFT) & (1<<TIF_UAC_NOPRINT))\
| (((value) << (ALPHA_UAC_SHIFT + 1)) & (1<<TIF_UAC_SIGBUS)) \
| (((value) << (ALPHA_UAC_SHIFT - 1)) & (1<<TIF_UAC_NOFIX)));\
0; })

#define GET_UNALIGN_CTL(task,value) ({ \
put_user(((task)->thread_info->flags & (1 << TIF_UAC_NOPRINT)) \
>> ALPHA_UAC_SHIFT \
| ((task)->thread_info->flags & (1 << TIF_UAC_SIGBUS)) \
>> (ALPHA_UAC_SHIFT + 1) \
| ((task)->thread_info->flags & (1 << TIF_UAC_NOFIX)) \
>> (ALPHA_UAC_SHIFT - 1), \
(int __user *)(value)); \
})

#endif /* __KERNEL__ */
#endif /* _ALPHA_THREAD_INFO_H */

0 comments on commit d184889

Please sign in to comment.