[parisc-linux-cvs] [PATCH] Display what caused the die_if_kernel error.
Ryan Bradetich
rbradetich@uswest.net
10 Nov 2002 23:14:54 -0700
--=-sxsXvQN7niBiTfppli3f
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Display the error message passed to die_if_kernel.
Code blatenly stolen from the sparc64 port.
- Ryan
--=-sxsXvQN7niBiTfppli3f
Content-Disposition: attachment; filename=traps.diff
Content-Transfer-Encoding: quoted-printable
Content-Type: text/x-patch; name=traps.diff; charset=ISO-8859-1
Index: Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /var/cvs/linux-2.5/Makefile,v
retrieving revision 1.37
diff -u -p -r1.37 Makefile
--- Makefile 8 Nov 2002 16:53:32 -0000 1.37
+++ Makefile 11 Nov 2002 06:11:29 -0000
@@ -1,7 +1,7 @@
VERSION =3D 2
PATCHLEVEL =3D 5
SUBLEVEL =3D 46
-EXTRAVERSION =3D -pa7
+EXTRAVERSION =3D -pa8
=20
# *DOCUMENTATION*
# To see a list of typical targets execute "make help"
Index: arch/parisc/kernel/traps.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /var/cvs/linux-2.5/arch/parisc/kernel/traps.c,v
retrieving revision 1.16
diff -u -p -r1.16 traps.c
--- arch/parisc/kernel/traps.c 2 Nov 2002 03:00:29 -0000 1.16
+++ arch/parisc/kernel/traps.c 11 Nov 2002 06:11:29 -0000
@@ -228,6 +228,9 @@ void die_if_kernel(char *str, struct pt_
" U ||----w |\n"
" || ||\n");
=20
+
+ printk("%s(%d): %s\n", current->comm, current->pid, str);
+
if (user_mode(regs)) {
#ifdef PRINT_USER_FAULTS
if (err =3D=3D 0)
--=-sxsXvQN7niBiTfppli3f--