2 * linux/arch/h8300/kernel/ptrace_h8s.c
3 * ptrace cpu depend helper functions
5 * Yoshinori Sato <ysato@users.sourceforge.jp>
7 * This file is subject to the terms and conditions of the GNU General
8 * Public License. See the file COPYING in the main directory of
9 * this archive for more details.
12 #include <linux/linkage.h>
13 #include <linux/sched/signal.h>
14 #include <linux/errno.h>
15 #include <asm/ptrace.h>
18 #define EXR_TRACE 0x80
20 /* disable singlestep */
21 void user_disable_single_step(struct task_struct
*child
)
25 exr
= h8300_get_reg(child
, PT_EXR
);
27 h8300_put_reg(child
, PT_EXR
, exr
);
30 /* enable singlestep */
31 void user_enable_single_step(struct task_struct
*child
)
35 exr
= h8300_get_reg(child
, PT_EXR
);
37 h8300_put_reg(child
, PT_EXR
, exr
);
40 asmlinkage
void trace_trap(unsigned long bp
)