]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
um: PTRACE_[GS]ETFPXREGS had been wired on the wrong subarch
authorAl Viro <viro@ftp.linux.org.uk>
Wed, 14 Sep 2011 23:21:34 +0000 (16:21 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 15 Sep 2011 01:09:37 +0000 (18:09 -0700)
It's 32bit-only, not 64bit-only...  And while we are at it, it's
set_fpxregs(), not set_fpregs()...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/sys-i386/ptrace.c
arch/um/sys-x86_64/ptrace.c

index d23b2d3ea3841cff23de5ed43edbcc2b1fe68375..49fd25a5f206dbd59bab258b803e31f7fe8e8448 100644 (file)
@@ -206,5 +206,17 @@ int set_fpxregs(struct user_fxsr_struct __user *buf, struct task_struct *child)
 long subarch_ptrace(struct task_struct *child, long request,
                    unsigned long addr, unsigned long data)
 {
-       return -EIO;
+       int ret = -EIO;
+       void __user *datap = (void __user *) data;
+
+       switch (request) {
+       case PTRACE_GETFPXREGS: /* Get the child FPU state. */
+               ret = get_fpxregs(datap, child);
+               break;
+       case PTRACE_SETFPXREGS: /* Set the child FPU state. */
+               ret = set_fpxregs(datap, child);
+               break;
+       }
+
+       return ret;
 }
index f43613643cdb71bf3100065830471965cc246541..7ed49ac78f883d64e2485bdfa0a511a412746f5c 100644 (file)
@@ -178,17 +178,5 @@ int set_fpregs(struct user_i387_struct __user *buf, struct task_struct *child)
 long subarch_ptrace(struct task_struct *child, long request,
                    unsigned long addr, unsigned long data)
 {
-       int ret = -EIO;
-       void __user *datap = (void __user *) data;
-
-       switch (request) {
-       case PTRACE_GETFPXREGS: /* Get the child FPU state. */
-               ret = get_fpregs(datap, child);
-               break;
-       case PTRACE_SETFPXREGS: /* Set the child FPU state. */
-               ret = set_fpregs(datap, child);
-               break;
-       }
-
-       return ret;
+       return -EIO;
 }