]> err.no Git - linux-2.6/blobdiff - arch/powerpc/kernel/signal.h
[POWERPC] Fix bootwrapper builds with newer gcc versions
[linux-2.6] / arch / powerpc / kernel / signal.h
index c284f75afe77d0f1519cf8cbc3f71df2add69516..77efb3d5465a1c95793b9386b86ea1952ecbb21d 100644 (file)
@@ -24,8 +24,32 @@ extern int handle_rt_signal32(unsigned long sig, struct k_sigaction *ka,
                              siginfo_t *info, sigset_t *oldset,
                              struct pt_regs *regs);
 
+
+#ifdef CONFIG_PPC64
+
+static inline int is_32bit_task(void)
+{
+       return test_thread_flag(TIF_32BIT);
+}
+
 extern int handle_rt_signal64(int signr, struct k_sigaction *ka,
                              siginfo_t *info, sigset_t *set,
                              struct pt_regs *regs);
 
+#else /* CONFIG_PPC64 */
+
+static inline int is_32bit_task(void)
+{
+       return 1;
+}
+
+static inline int handle_rt_signal64(int signr, struct k_sigaction *ka,
+                                    siginfo_t *info, sigset_t *set,
+                                    struct pt_regs *regs)
+{
+       return -EFAULT;
+}
+
+#endif /* !defined(CONFIG_PPC64) */
+
 #endif  /* _POWERPC_ARCH_SIGNAL_H */