Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 297754
b: refs/heads/master
c: ef334a2
h: refs/heads/master
v: v3
  • Loading branch information
Srikar Dronamraju authored and Ingo Molnar committed Mar 13, 2012
1 parent 8060f22 commit 1b544cc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 51e7dc7011c99e1e5294658c7b551b92ca069985
refs/heads/master: ef334a20d84f52407a8a2afd02ddeaecbef0ad3d
9 changes: 0 additions & 9 deletions trunk/arch/x86/include/asm/compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -235,15 +235,6 @@ static inline void __user *arch_compat_alloc_user_space(long len)
return (void __user *)round_down(sp - len, 16);
}

static inline bool is_ia32_task(void)
{
#ifdef CONFIG_IA32_EMULATION
if (current_thread_info()->status & TS_COMPAT)
return true;
#endif
return false;
}

static inline bool is_x32_task(void)
{
#ifdef CONFIG_X86_X32_ABI
Expand Down
12 changes: 12 additions & 0 deletions trunk/arch/x86/include/asm/thread_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,18 @@ static inline void set_restore_sigmask(void)
ti->status |= TS_RESTORE_SIGMASK;
set_bit(TIF_SIGPENDING, (unsigned long *)&ti->flags);
}

static inline bool is_ia32_task(void)
{
#ifdef CONFIG_X86_32
return true;
#endif
#ifdef CONFIG_IA32_EMULATION
if (current_thread_info()->status & TS_COMPAT)
return true;
#endif
return false;
}
#endif /* !__ASSEMBLY__ */

#ifndef __ASSEMBLY__
Expand Down

0 comments on commit 1b544cc

Please sign in to comment.