]> err.no Git - linux-2.6/blobdiff - arch/um/sys-i386/ptrace.c
[Blackfin] arch: fix bug - linux-2.6.24 (delayed) disable IRQ feature not functional...
[linux-2.6] / arch / um / sys-i386 / ptrace.c
index 659011df1e9ae2ee1752e8945c63f6f632e02cfb..6b4499906a6c96be3139a594681b7c632b8139c1 100644 (file)
@@ -8,11 +8,11 @@
 #include "asm/uaccess.h"
 #include "skas.h"
 
-extern int arch_switch_tls(struct task_struct *from, struct task_struct *to);
+extern int arch_switch_tls(struct task_struct *to);
 
-void arch_switch_to(struct task_struct *from, struct task_struct *to)
+void arch_switch_to(struct task_struct *to)
 {
-       int err = arch_switch_tls(from, to);
+       int err = arch_switch_tls(to);
        if (!err)
                return;
 
@@ -155,7 +155,7 @@ int get_fpregs(struct user_i387_struct __user *buf, struct task_struct *child)
        if (err)
                return err;
 
-       n = copy_to_user((void *) buf, fpregs, sizeof(fpregs));
+       n = copy_to_user(buf, fpregs, sizeof(fpregs));
        if(n > 0)
                return -EFAULT;
 
@@ -168,7 +168,7 @@ int set_fpregs(struct user_i387_struct __user *buf, struct task_struct *child)
        long fpregs[HOST_FP_SIZE];
 
        BUG_ON(sizeof(*buf) != sizeof(fpregs));
-       n = copy_from_user(fpregs, (void *) buf, sizeof(fpregs));
+       n = copy_from_user(fpregs, buf, sizeof(fpregs));
        if (n > 0)
                return -EFAULT;
 
@@ -185,7 +185,7 @@ int get_fpxregs(struct user_fxsr_struct __user *buf, struct task_struct *child)
        if (err)
                return err;
 
-       n = copy_to_user((void *) buf, fpregs, sizeof(fpregs));
+       n = copy_to_user(buf, fpregs, sizeof(fpregs));
        if(n > 0)
                return -EFAULT;
 
@@ -198,35 +198,13 @@ int set_fpxregs(struct user_fxsr_struct __user *buf, struct task_struct *child)
        long fpregs[HOST_XFP_SIZE];
 
        BUG_ON(sizeof(*buf) != sizeof(fpregs));
-       n = copy_from_user(fpregs, (void *) buf, sizeof(fpregs));
+       n = copy_from_user(fpregs, buf, sizeof(fpregs));
        if (n > 0)
                return -EFAULT;
 
        return restore_fpx_registers(userspace_pid[cpu], fpregs);
 }
 
-#ifdef notdef
-int dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpu)
-{
-       fpu->cwd = (((SC_FP_CW(PT_REGS_SC(regs)) & 0xffff) << 16) |
-                   (SC_FP_SW(PT_REGS_SC(regs)) & 0xffff));
-       fpu->swd = SC_FP_CSSEL(PT_REGS_SC(regs)) & 0xffff;
-       fpu->twd = SC_FP_IPOFF(PT_REGS_SC(regs));
-       fpu->fip = SC_FP_CSSEL(PT_REGS_SC(regs)) & 0xffff;
-       fpu->fcs = SC_FP_DATAOFF(PT_REGS_SC(regs));
-       fpu->foo = SC_FP_DATASEL(PT_REGS_SC(regs));
-       fpu->fos = 0;
-       memcpy(fpu->st_space, (void *) SC_FP_ST(PT_REGS_SC(regs)),
-              sizeof(fpu->st_space));
-       return 1;
-}
-#endif
-
-int dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpu )
-{
-       return 1;
-}
-
 long subarch_ptrace(struct task_struct *child, long request, long addr,
                    long data)
 {