Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 120812
b: refs/heads/master
c: 3aeb95d
h: refs/heads/master
v: v3
  • Loading branch information
jia zhang authored and Ingo Molnar committed Nov 23, 2008
1 parent f2c21a5 commit 9e16a74
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: ca9eed76133c00e7f4b1eeb4c1a6cb800cd2654c
refs/heads/master: 3aeb95d5b7839708a8d8e11aa274ee4d0d4042cc
7 changes: 4 additions & 3 deletions trunk/arch/x86/kernel/irq_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@
static inline void stack_overflow_check(struct pt_regs *regs)
{
u64 curbase = (u64)task_stack_page(current);
static unsigned long warned = -60*HZ;
static unsigned long warned = INITIAL_JIFFIES - 60*HZ;

if (regs->sp >= curbase && regs->sp <= curbase + THREAD_SIZE &&
regs->sp < curbase + sizeof(struct thread_info) + 128 &&
time_after(jiffies, warned + 60*HZ)) {
regs->sp < curbase + sizeof(struct thread_info) +
sizeof(struct pt_regs) + 128 &&
time_after(jiffies, warned + 60*HZ)) {
printk("do_IRQ: %s near stack overflow (cur:%Lx,sp:%lx)\n",
current->comm, curbase, regs->sp);
show_stack(NULL,NULL);
Expand Down

0 comments on commit 9e16a74

Please sign in to comment.