Linux 3.8-rc7
[cris-mirror.git] / arch / cris / kernel / ptrace.c
blob58d44ee1a71f70885aef328fdf6a6af32d6c7b58
1 /*
2 * linux/arch/cris/kernel/ptrace.c
4 * Parts taken from the m68k port.
6 * Copyright (c) 2000, 2001, 2002 Axis Communications AB
8 * Authors: Bjorn Wesen
12 #include <linux/kernel.h>
13 #include <linux/sched.h>
14 #include <linux/mm.h>
15 #include <linux/smp.h>
16 #include <linux/errno.h>
17 #include <linux/ptrace.h>
18 #include <linux/user.h>
19 #include <linux/tracehook.h>
21 #include <asm/uaccess.h>
22 #include <asm/page.h>
23 #include <asm/pgtable.h>
24 #include <asm/processor.h>
27 /* notification of userspace execution resumption
28 * - triggered by current->work.notify_resume
30 extern int do_signal(int canrestart, struct pt_regs *regs);
33 void do_notify_resume(int canrestart, struct pt_regs *regs,
34 __u32 thread_info_flags)
36 /* deal with pending signal delivery */
37 if (thread_info_flags & _TIF_SIGPENDING)
38 do_signal(canrestart,regs);
40 if (thread_info_flags & _TIF_NOTIFY_RESUME) {
41 clear_thread_flag(TIF_NOTIFY_RESUME);
42 tracehook_notify_resume(regs);