diff options
Diffstat (limited to 'arch/sparc/kernel/unaligned.c')
-rw-r--r-- | arch/sparc/kernel/unaligned.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/arch/sparc/kernel/unaligned.c b/arch/sparc/kernel/unaligned.c index 2f051a6aa..0f718bac8 100644 --- a/arch/sparc/kernel/unaligned.c +++ b/arch/sparc/kernel/unaligned.c @@ -1,4 +1,4 @@ -/* $Id: unaligned.c,v 1.21 2000/03/15 08:50:16 anton Exp $ +/* $Id: unaligned.c,v 1.22 2000/04/29 08:05:21 anton Exp $ * unaligned.c: Unaligned load/store trap handling with special * cases for the kernel to do them more quickly. * @@ -351,10 +351,12 @@ void kernel_mna_trap_fault(struct pt_regs *regs, unsigned int insn) } else printk(KERN_ALERT "Unable to handle kernel paging request in mna handler"); printk(KERN_ALERT " at virtual address %08lx\n",address); - printk(KERN_ALERT "current->mm->context = %08lx\n", - (unsigned long) current->mm->context); - printk(KERN_ALERT "current->mm->pgd = %08lx\n", - (unsigned long) current->mm->pgd); + printk(KERN_ALERT "current->{mm,active_mm}->context = %08lx\n", + (current->mm ? current->mm->context : + current->active_mm->context)); + printk(KERN_ALERT "current->{mm,active_mm}->pgd = %08lx\n", + (current->mm ? (unsigned long) current->mm->pgd : + (unsigned long) current->active_mm->pgd)); die_if_kernel("Oops", regs); /* Not reached */ } |