Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 169970
b: refs/heads/master
c: a343c75
h: refs/heads/master
v: v3
  • Loading branch information
H. Peter Anvin committed Oct 12, 2009
1 parent b1b1769 commit 3d39a1d
Show file tree
Hide file tree
Showing 2 changed files with 5 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: def3c5d0a34e4b09b3cea4435c17209ad347104d
refs/heads/master: a343c75d338aa2afaea4a2a8e40de9e67b6fb4a7
7 changes: 4 additions & 3 deletions trunk/arch/x86/kernel/dumpstack.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,12 @@ int __kprobes __die(const char *str, struct pt_regs *regs, long err)

show_registers(regs);
#ifdef CONFIG_X86_32
sp = (unsigned long) (&regs->sp);
savesegment(ss, ss);
if (user_mode(regs)) {
if (user_mode_vm(regs)) {
sp = regs->sp;
ss = regs->ss & 0xffff;
} else {
sp = kernel_stack_pointer(regs);
savesegment(ss, ss);
}
printk(KERN_EMERG "EIP: [<%08lx>] ", regs->ip);
print_symbol("%s", regs->ip);
Expand Down

0 comments on commit 3d39a1d

Please sign in to comment.