12 #include <linux/linkage.h>
13 #include <linux/sched.h>
14 #include <linux/errno.h>
15 #include <asm/ptrace.h>
18 #define EXR_TRACE 0x80
23 static const int h8300_register_offset[] = {
37 return *(
unsigned short *)(task->
thread.esp0 + h8300_register_offset[regno]);
39 return *(
unsigned long *)(task->
thread.esp0 + h8300_register_offset[regno]);
46 unsigned short oldccr;
51 oldccr = *(
unsigned short *)(task->
thread.esp0 + h8300_register_offset[regno]);
55 *(
unsigned short *)(task->
thread.esp0 + h8300_register_offset[regno]) =
data;
61 *(
unsigned long *)(task->
thread.esp0 + h8300_register_offset[regno]) =
data;