OSDN Git Service

Add task_pt_regs
authorYoshinori Sato <ysato@users.sourceforge.jp>
Thu, 15 Jan 2015 06:40:01 +0000 (15:40 +0900)
committerYoshinori Sato <ysato@users.sourceforge.jp>
Thu, 15 Jan 2015 06:40:01 +0000 (15:40 +0900)
arch/h8300/include/asm/ptrace.h

index 3ca0114..87de7b3 100644 (file)
@@ -27,5 +27,8 @@
        (THREAD_SIZE + (unsigned long)current_thread_info()) - 1)
 #define signal_pt_regs() ((struct pt_regs *)current->thread.esp0)
 #define current_user_stack_pointer() rdusp()
+#define task_pt_regs(task) \
+         ((struct pt_regs *) (task_stack_page(task) + THREAD_SIZE) - 1)
+
 #endif /* __ASSEMBLY__ */
 #endif /* _H8300_PTRACE_H */