[PATCH] s390: task_pt_regs()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
579b3ea591
commit
c7584fb6b4
7 changed files with 22 additions and 23 deletions
|
@ -191,10 +191,10 @@ extern void show_registers(struct pt_regs *regs);
|
|||
extern void show_trace(struct task_struct *task, unsigned long *sp);
|
||||
|
||||
unsigned long get_wchan(struct task_struct *p);
|
||||
#define __KSTK_PTREGS(tsk) ((struct pt_regs *) \
|
||||
((unsigned long) tsk->thread_info + THREAD_SIZE - sizeof(struct pt_regs)))
|
||||
#define KSTK_EIP(tsk) (__KSTK_PTREGS(tsk)->psw.addr)
|
||||
#define KSTK_ESP(tsk) (__KSTK_PTREGS(tsk)->gprs[15])
|
||||
#define task_pt_regs(tsk) ((struct pt_regs *) \
|
||||
((void *)(tsk)->thread_info + THREAD_SIZE) - 1)
|
||||
#define KSTK_EIP(tsk) (task_pt_regs(tsk)->psw.addr)
|
||||
#define KSTK_ESP(tsk) (task_pt_regs(tsk)->gprs[15])
|
||||
|
||||
/*
|
||||
* Give up the time slice of the virtual PU.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue