#include <asm/ptrace.h>
#include <linux/sched.h>
#include <linux/errno.h>
-#include <linux/mm.h>
#include <asm/uaccess.h>
#include <asm/elf.h>
*/
}
-/* 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 )