git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
x86-64: seccomp: fix 32/64 syscall hole
[safe/jmp/linux-2.6]
/
arch
/
powerpc
/
include
/
asm
/
compat.h
diff --git
a/arch/powerpc/include/asm/compat.h
b/arch/powerpc/include/asm/compat.h
index
d811a8c
..
4774c2f
100644
(file)
--- a/
arch/powerpc/include/asm/compat.h
+++ b/
arch/powerpc/include/asm/compat.h
@@
-210,5
+210,10
@@
struct compat_shmid64_ds {
compat_ulong_t __unused6;
};
+static inline int is_compat_task(void)
+{
+ return test_thread_flag(TIF_32BIT);
+}
+
#endif /* __KERNEL__ */
#endif /* _ASM_POWERPC_COMPAT_H */