aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/signal_32.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2005-10-18 00:51:57 -0400
committerStephen Rothwell <sfr@canb.auug.org.au>2005-10-18 00:51:57 -0400
commitb09a4913b15d2544f8918f05b9937cb4e99a2319 (patch)
treeed8e4764e6358f18e5641f6fba5815ea88ac1f5e /arch/powerpc/kernel/signal_32.c
parent81e7009ea46c951860b8716ee427ff4f54dd26fc (diff)
powerpc: change sys32_ to compat_sys_
This allows us to get rid of one type of entry in systbl.S. In passing we remove the duplicate compat_sys_getdents and compat_sys_utimes for which there are generic versions. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Diffstat (limited to 'arch/powerpc/kernel/signal_32.c')
-rw-r--r--arch/powerpc/kernel/signal_32.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/arch/powerpc/kernel/signal_32.c b/arch/powerpc/kernel/signal_32.c
index e53127ec373d..e7e7aac11f89 100644
--- a/arch/powerpc/kernel/signal_32.c
+++ b/arch/powerpc/kernel/signal_32.c
@@ -58,12 +58,12 @@
58 58
59#ifdef CONFIG_PPC64 59#ifdef CONFIG_PPC64
60#define do_signal do_signal32 60#define do_signal do_signal32
61#define sys_sigsuspend sys32_sigsuspend 61#define sys_sigsuspend compat_sys_sigsuspend
62#define sys_rt_sigsuspend sys32_rt_sigsuspend 62#define sys_rt_sigsuspend compat_sys_rt_sigsuspend
63#define sys_rt_sigreturn sys32_rt_sigreturn 63#define sys_rt_sigreturn compat_sys_rt_sigreturn
64#define sys_sigaction sys32_sigaction 64#define sys_sigaction compat_sys_sigaction
65#define sys_swapcontext sys32_swapcontext 65#define sys_swapcontext compat_sys_swapcontext
66#define sys_sigreturn sys32_sigreturn 66#define sys_sigreturn compat_sys_sigreturn
67 67
68#define old_sigaction old_sigaction32 68#define old_sigaction old_sigaction32
69#define sigcontext sigcontext32 69#define sigcontext sigcontext32
@@ -540,7 +540,7 @@ static long restore_user_regs(struct pt_regs *regs,
540} 540}
541 541
542#ifdef CONFIG_PPC64 542#ifdef CONFIG_PPC64
543long sys32_rt_sigaction(int sig, const struct sigaction32 __user *act, 543long compat_sys_rt_sigaction(int sig, const struct sigaction32 __user *act,
544 struct sigaction32 __user *oact, size_t sigsetsize) 544 struct sigaction32 __user *oact, size_t sigsetsize)
545{ 545{
546 struct k_sigaction new_ka, old_ka; 546 struct k_sigaction new_ka, old_ka;
@@ -577,7 +577,7 @@ long sys32_rt_sigaction(int sig, const struct sigaction32 __user *act,
577 * of a signed int (msr in 32-bit mode) and the register representation 577 * of a signed int (msr in 32-bit mode) and the register representation
578 * of a signed int (msr in 64-bit mode) is performed. 578 * of a signed int (msr in 64-bit mode) is performed.
579 */ 579 */
580long sys32_rt_sigprocmask(u32 how, compat_sigset_t __user *set, 580long compat_sys_rt_sigprocmask(u32 how, compat_sigset_t __user *set,
581 compat_sigset_t __user *oset, size_t sigsetsize) 581 compat_sigset_t __user *oset, size_t sigsetsize)
582{ 582{
583 sigset_t s; 583 sigset_t s;
@@ -605,7 +605,7 @@ long sys32_rt_sigprocmask(u32 how, compat_sigset_t __user *set,
605 return 0; 605 return 0;
606} 606}
607 607
608long sys32_rt_sigpending(compat_sigset_t __user *set, compat_size_t sigsetsize) 608long compat_sys_rt_sigpending(compat_sigset_t __user *set, compat_size_t sigsetsize)
609{ 609{
610 sigset_t s; 610 sigset_t s;
611 int ret; 611 int ret;
@@ -687,7 +687,7 @@ int copy_siginfo_to_user32(struct compat_siginfo __user *d, siginfo_t *s)
687 * (msr in 32-bit mode) and the register representation of a signed int 687 * (msr in 32-bit mode) and the register representation of a signed int
688 * (msr in 64-bit mode) is performed. 688 * (msr in 64-bit mode) is performed.
689 */ 689 */
690long sys32_rt_sigqueueinfo(u32 pid, u32 sig, compat_siginfo_t __user *uinfo) 690long compat_sys_rt_sigqueueinfo(u32 pid, u32 sig, compat_siginfo_t __user *uinfo)
691{ 691{
692 siginfo_t info; 692 siginfo_t info;
693 int ret; 693 int ret;
@@ -706,10 +706,10 @@ long sys32_rt_sigqueueinfo(u32 pid, u32 sig, compat_siginfo_t __user *uinfo)
706 * Start Alternate signal stack support 706 * Start Alternate signal stack support
707 * 707 *
708 * System Calls 708 * System Calls
709 * sigaltatck sys32_sigaltstack 709 * sigaltatck compat_sys_sigaltstack
710 */ 710 */
711 711
712int sys32_sigaltstack(u32 __new, u32 __old, int r5, 712int compat_sys_sigaltstack(u32 __new, u32 __old, int r5,
713 int r6, int r7, int r8, struct pt_regs *regs) 713 int r6, int r7, int r8, struct pt_regs *regs)
714{ 714{
715 stack_32_t __user * newstack = (stack_32_t __user *)(long) __new; 715 stack_32_t __user * newstack = (stack_32_t __user *)(long) __new;
@@ -942,11 +942,11 @@ long sys_rt_sigreturn(int r3, int r4, int r5, int r6, int r7, int r8,
942 */ 942 */
943#ifdef CONFIG_PPC64 943#ifdef CONFIG_PPC64
944 /* 944 /*
945 * We use the sys32_ version that does the 32/64 bits conversion 945 * We use the compat_sys_ version that does the 32/64 bits conversion
946 * and takes userland pointer directly. What about error checking ? 946 * and takes userland pointer directly. What about error checking ?
947 * nobody does any... 947 * nobody does any...
948 */ 948 */
949 sys32_sigaltstack((u32)(u64)&rt_sf->uc.uc_stack, 0, 0, 0, 0, 0, regs); 949 compat_sys_sigaltstack((u32)(u64)&rt_sf->uc.uc_stack, 0, 0, 0, 0, 0, regs);
950 return (int)regs->result; 950 return (int)regs->result;
951#else 951#else
952 do_sigaltstack(&rt_sf->uc.uc_stack, NULL, regs->gpr[1]); 952 do_sigaltstack(&rt_sf->uc.uc_stack, NULL, regs->gpr[1]);