Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 136935
b: refs/heads/master
c: 1cc9954
h: refs/heads/master
i:
  136933: 1fa4a2d
  136931: 83459ca
  136927: d7f460b
v: v3
  • Loading branch information
Ingo Molnar committed Feb 20, 2009
1 parent 8648c6e commit cfd6403
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 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: 8f7661496cece8320137d5e26808825498fd2b26
refs/heads/master: 1cc99544dde9e48602979f16b9309fade6e93051
19 changes: 3 additions & 16 deletions trunk/arch/x86/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -659,11 +659,8 @@ no_context(struct pt_regs *regs, unsigned long error_code,
{
struct task_struct *tsk = current;
unsigned long *stackend;

#ifdef CONFIG_X86_64
unsigned long flags;
int sig;
#endif

/* Are we prepared to handle this kernel fault? */
if (fixup_exception(regs))
Expand All @@ -690,27 +687,18 @@ no_context(struct pt_regs *regs, unsigned long error_code,
* Oops. The kernel tried to access some bad page. We'll have to
* terminate things with extreme prejudice:
*/
#ifdef CONFIG_X86_32
bust_spinlocks(1);
#else
flags = oops_begin();
#endif

show_fault_oops(regs, error_code, address);

stackend = end_of_stack(tsk);
if (*stackend != STACK_END_MAGIC)
printk(KERN_ALERT "Thread overran stack, or stack corrupted\n");

tsk->thread.cr2 = address;
tsk->thread.trap_no = 14;
tsk->thread.error_code = error_code;
tsk->thread.cr2 = address;
tsk->thread.trap_no = 14;
tsk->thread.error_code = error_code;

#ifdef CONFIG_X86_32
die("Oops", regs, error_code);
bust_spinlocks(0);
do_exit(SIGKILL);
#else
sig = SIGKILL;
if (__die("Oops", regs, error_code))
sig = 0;
Expand All @@ -719,7 +707,6 @@ no_context(struct pt_regs *regs, unsigned long error_code,
printk(KERN_EMERG "CR2: %016lx\n", address);

oops_end(flags, regs, sig);
#endif
}

/*
Expand Down

0 comments on commit cfd6403

Please sign in to comment.