patch-2.3.23 linux/arch/arm/lib/system.c

Next file: linux/arch/arm/lib/uaccess-armo.S
Previous file: linux/arch/arm/lib/system.S
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.22/linux/arch/arm/lib/system.c linux/arch/arm/lib/system.c
@@ -0,0 +1,22 @@
+/*
+ * linux/arch/arm/lib/system.c
+ *
+ * Copyright (C) 1999 Russell King
+ *
+ * Converted from ASM version 04/09/1999
+ */
+#include <linux/kernel.h>
+
+extern void abort(void)
+{
+	void *lr = __builtin_return_address(0);
+
+	printk(KERN_CRIT "kernel abort from %p!  (Please report to rmk@arm.linux.org.uk)\n",
+		lr);
+
+	/* force an oops */
+	*(int *)0 = 0;
+
+	/* 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)