Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
[linux-2.6-block.git] / arch / powerpc / kernel / signal.h
CommitLineData
22e38f29 1/*
446957ba 2 * Copyright (c) 2007 Benjamin Herrenschmidt, IBM Corporation
22e38f29
BH
3 * Extracted from signal_32.c and signal_64.c
4 *
5 * This file is subject to the terms and conditions of the GNU General
6 * Public License. See the file README.legal in the main directory of
7 * this archive for more details.
8 */
9
10#ifndef _POWERPC_ARCH_SIGNAL_H
11#define _POWERPC_ARCH_SIGNAL_H
12
18b246fa 13extern void do_notify_resume(struct pt_regs *regs, unsigned long thread_info_flags);
2e074004 14
129b69df 15extern void __user *get_sigframe(struct ksignal *ksig, unsigned long sp,
efbda860 16 size_t frame_size, int is_32);
f478f543 17
129b69df 18extern int handle_signal32(struct ksignal *ksig, sigset_t *oldset,
a3f61dc0 19 struct pt_regs *regs);
f478f543 20
129b69df 21extern int handle_rt_signal32(struct ksignal *ksig, sigset_t *oldset,
a3f61dc0 22 struct pt_regs *regs);
f478f543 23
6a274c08
MN
24extern unsigned long copy_fpr_to_user(void __user *to,
25 struct task_struct *task);
2b0a576d
MN
26extern unsigned long copy_transact_fpr_to_user(void __user *to,
27 struct task_struct *task);
6a274c08
MN
28extern unsigned long copy_fpr_from_user(struct task_struct *task,
29 void __user *from);
2b0a576d
MN
30extern unsigned long copy_transact_fpr_from_user(struct task_struct *task,
31 void __user *from);
6a274c08
MN
32#ifdef CONFIG_VSX
33extern unsigned long copy_vsx_to_user(void __user *to,
34 struct task_struct *task);
2b0a576d
MN
35extern unsigned long copy_transact_vsx_to_user(void __user *to,
36 struct task_struct *task);
6a274c08
MN
37extern unsigned long copy_vsx_from_user(struct task_struct *task,
38 void __user *from);
2b0a576d
MN
39extern unsigned long copy_transact_vsx_from_user(struct task_struct *task,
40 void __user *from);
6a274c08 41#endif
2f97cd39
BH
42
43#ifdef CONFIG_PPC64
44
129b69df 45extern int handle_rt_signal64(struct ksignal *ksig, sigset_t *set,
f478f543 46 struct pt_regs *regs);
22e38f29 47
2f97cd39
BH
48#else /* CONFIG_PPC64 */
49
129b69df 50static inline int handle_rt_signal64(struct ksignal *ksig, sigset_t *set,
2f97cd39
BH
51 struct pt_regs *regs)
52{
53 return -EFAULT;
54}
55
56#endif /* !defined(CONFIG_PPC64) */
57
22e38f29 58#endif /* _POWERPC_ARCH_SIGNAL_H */