linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / arch / um / sys-x86_64 / ptrace.c
index 147bbf0..74eee5c 100644 (file)
@@ -8,7 +8,6 @@
 #include <asm/ptrace.h>
 #include <linux/sched.h>
 #include <linux/errno.h>
-#include <linux/mm.h>
 #include <asm/uaccess.h>
 #include <asm/elf.h>
 
@@ -137,28 +136,9 @@ void arch_switch(void)
 */
 }
 
-/* XXX Mostly copied from sys-i386 */
 int is_syscall(unsigned long addr)
 {
-       unsigned short instr;
-       int n;
-
-       n = copy_from_user(&instr, (void __user *) addr, sizeof(instr));
-       if(n){
-               /* access_process_vm() grants access to vsyscall and stub,
-                * while copy_from_user doesn't. Maybe access_process_vm is
-                * slow, but that doesn't matter, since it will be called only
-                * in case of singlestepping, if copy_from_user failed.
-                */
-               n = access_process_vm(current, addr, &instr, sizeof(instr), 0);
-               if(n != sizeof(instr)) {
-                       printk("is_syscall : failed to read instruction from "
-                              "0x%lx\n", addr);
-                       return(1);
-               }
-       }
-       /* sysenter */
-       return(instr == 0x050f);
+       panic("is_syscall");
 }
 
 int dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpu )