Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 60529
b: refs/heads/master
c: 2f97cd3
h: refs/heads/master
i:
  60527: c283c95
v: v3
  • Loading branch information
Benjamin Herrenschmidt authored and Paul Mackerras committed Jun 14, 2007
1 parent ab95f86 commit 0d1fdf3
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 16 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: 0edc4ffd0e50d1ab0f387d37457210bc8bf8f8da
refs/heads/master: 2f97cd3912428f5044fa7715293a69349fc455fa
15 changes: 0 additions & 15 deletions trunk/arch/powerpc/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,6 @@

#include "signal.h"


#ifdef CONFIG_PPC64
static inline int is_32bit_task(void)
{
return test_thread_flag(TIF_32BIT);
}
#else
static inline int is_32bit_task(void)
{
return 1;
}
#endif

/*
* Allocate space for the signal frame
*/
Expand Down Expand Up @@ -161,10 +148,8 @@ int do_signal(sigset_t *oldset, struct pt_regs *regs)
else
ret = handle_signal32(signr, &ka, &info, oldset,
regs);
#ifdef CONFIG_PPC64
} else {
ret = handle_rt_signal64(signr, &ka, &info, oldset, regs);
#endif
}

if (ret) {
Expand Down
24 changes: 24 additions & 0 deletions trunk/arch/powerpc/kernel/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 0d1fdf3

Please sign in to comment.