Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18501
b: refs/heads/master
c: eb33c19
h: refs/heads/master
i:
  18499: a7c5af1
v: v3
  • Loading branch information
Heiko Carstens authored and Linus Torvalds committed Jan 15, 2006
1 parent e8fea6d commit 469a84e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7ffbc9da137ef475afd5e01f72e1ce1ce49668b1
refs/heads/master: eb33c190c2b633f0dfc98481ecf12f62a02c705e
14 changes: 11 additions & 3 deletions trunk/arch/s390/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,18 @@ asmlinkage void ret_from_fork(void) __asm__("ret_from_fork");
*/
unsigned long thread_saved_pc(struct task_struct *tsk)
{
struct stack_frame *sf;
struct stack_frame *sf, *low, *high;

sf = (struct stack_frame *) tsk->thread.ksp;
sf = (struct stack_frame *) sf->back_chain;
if (!tsk || !task_stack_page(tsk))
return 0;
low = task_stack_page(tsk);
high = (struct stack_frame *) task_pt_regs(tsk);
sf = (struct stack_frame *) (tsk->thread.ksp & PSW_ADDR_INSN);
if (sf <= low || sf > high)
return 0;
sf = (struct stack_frame *) (sf->back_chain & PSW_ADDR_INSN);
if (sf <= low || sf > high)
return 0;
return sf->gprs[8];
}

Expand Down

0 comments on commit 469a84e

Please sign in to comment.