patch-2.3.99-pre7 linux/arch/sparc/kernel/unaligned.c
Next file: linux/arch/sparc/lib/atomic.S
Previous file: linux/arch/sparc/kernel/traps.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Wed May 3 01:47:57 2000
- Orig file:
v2.3.99-pre6/linux/arch/sparc/kernel/unaligned.c
- Orig date:
Sun Mar 19 18:35:30 2000
diff -u --recursive --new-file v2.3.99-pre6/linux/arch/sparc/kernel/unaligned.c linux/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 @@
} 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 */
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)