]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - arch/powerpc/kernel/signal.h
Merge branches 'acpica' and 'acpi-scan'
[mirror_ubuntu-zesty-kernel.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,
d1199431 19 struct task_struct *tsk);
f478f543 20
129b69df 21extern int handle_rt_signal32(struct ksignal *ksig, sigset_t *oldset,
d1199431 22 struct task_struct *tsk);
f478f543 23
6a274c08
MN
24extern unsigned long copy_fpr_to_user(void __user *to,
25 struct task_struct *task);
000ec280 26extern unsigned long copy_ckfpr_to_user(void __user *to,
2b0a576d 27 struct task_struct *task);
6a274c08
MN
28extern unsigned long copy_fpr_from_user(struct task_struct *task,
29 void __user *from);
000ec280 30extern unsigned long copy_ckfpr_from_user(struct task_struct *task,
2b0a576d 31 void __user *from);
d1199431
CB
32extern unsigned long get_tm_stackpointer(struct task_struct *tsk);
33
6a274c08
MN
34#ifdef CONFIG_VSX
35extern unsigned long copy_vsx_to_user(void __user *to,
36 struct task_struct *task);
000ec280 37extern unsigned long copy_ckvsx_to_user(void __user *to,
2b0a576d 38 struct task_struct *task);
6a274c08
MN
39extern unsigned long copy_vsx_from_user(struct task_struct *task,
40 void __user *from);
000ec280 41extern unsigned long copy_ckvsx_from_user(struct task_struct *task,
2b0a576d 42 void __user *from);
6a274c08 43#endif
2f97cd39
BH
44
45#ifdef CONFIG_PPC64
46
129b69df 47extern int handle_rt_signal64(struct ksignal *ksig, sigset_t *set,
d1199431 48 struct task_struct *tsk);
22e38f29 49
2f97cd39
BH
50#else /* CONFIG_PPC64 */
51
129b69df 52static inline int handle_rt_signal64(struct ksignal *ksig, sigset_t *set,
d1199431 53 struct task_struct *tsk)
2f97cd39
BH
54{
55 return -EFAULT;
56}
57
58#endif /* !defined(CONFIG_PPC64) */
59
22e38f29 60#endif /* _POWERPC_ARCH_SIGNAL_H */