Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41006
b: refs/heads/master
c: 808dbbb
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed Nov 17, 2006
1 parent 08bca4d commit 18efb3e
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 1ff5683043196b9ad628a5de6bf8eeca52ee8bfd
refs/heads/master: 808dbbb6bb61173bf52946a28f99089d2efa4c55
10 changes: 7 additions & 3 deletions trunk/arch/i386/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,19 @@ static inline unsigned long print_context_stack(struct thread_info *tinfo,

#ifdef CONFIG_FRAME_POINTER
while (valid_stack_ptr(tinfo, (void *)ebp)) {
unsigned long new_ebp;
addr = *(unsigned long *)(ebp + 4);
ops->address(data, addr);
/*
* break out of recursive entries (such as
* end_of_stack_stop_unwind_function):
* end_of_stack_stop_unwind_function). Also,
* we can never allow a frame pointer to
* move downwards!
*/
if (ebp == *(unsigned long *)ebp)
new_ebp = *(unsigned long *)ebp;
if (new_ebp <= ebp)
break;
ebp = *(unsigned long *)ebp;
ebp = new_ebp;
}
#else
while (valid_stack_ptr(tinfo, stack)) {
Expand Down

0 comments on commit 18efb3e

Please sign in to comment.