patch-2.3.99-pre9 linux/arch/arm/kernel/traps.c
Next file: linux/arch/arm/lib/Makefile
Previous file: linux/arch/arm/kernel/iic.c
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Mon May 15 16:41:29 2000
- Orig file:
v2.3.99-pre8/linux/arch/arm/kernel/traps.c
- Orig date:
Thu Feb 10 17:11:03 2000
diff -u --recursive --new-file v2.3.99-pre8/linux/arch/arm/kernel/traps.c linux/arch/arm/kernel/traps.c
@@ -399,13 +399,13 @@
printk(KERN_CRIT"kernel BUG at %s:%d!\n", file, line);
if (data)
printk(KERN_CRIT"extra data = %p\n", data);
- *(int *)0 = 0;
+ BUG();
}
void __readwrite_bug(const char *fn)
{
printk("%s called, but not implemented", fn);
- *(int *)0 = 0;
+ BUG();
}
void __pte_error(const char *file, int line, unsigned long val)
@@ -436,7 +436,7 @@
printk(KERN_CRIT "abort() called from %p! (Please "
"report to rmk@arm.linux.org.uk)\n", lr);
- *(int *)0 = 0;
+ BUG();
/* if that doesn't kill us, halt */
panic("Oops failed to kill thread");
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)