patch-1.3.96 linux/arch/sparc/kernel/traps.c
Next file: linux/arch/sparc/kernel/wuf.S
Previous file: linux/arch/sparc/kernel/systbls.S
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Thu Apr 25 13:22:05 1996
- Orig file:
v1.3.95/linux/arch/sparc/kernel/traps.c
- Orig date:
Sun Apr 21 19:22:01 1996
diff -u --recursive --new-file v1.3.95/linux/arch/sparc/kernel/traps.c linux/arch/sparc/kernel/traps.c
@@ -1,4 +1,4 @@
-/* $Id: traps.c,v 1.42 1996/04/16 08:24:44 davem Exp $
+/* $Id: traps.c,v 1.43 1996/04/24 09:09:42 davem Exp $
* arch/sparc/kernel/traps.c
*
* Copyright 1995 David S. Miller (davem@caip.rutgers.edu)
@@ -21,6 +21,7 @@
#include <asm/pgtable.h>
#include <asm/kdebug.h>
#include <asm/unistd.h>
+#include <asm/traps.h>
#include <asm/smp.h>
/* #define TRAP_DEBUG */
@@ -95,6 +96,10 @@
printk("Unimplemented Sparc TRAP, type = %02lx\n", type);
die_if_kernel("Whee... Hello Mr. Penguin", current->tss.kregs);
}
+ if(type == SP_TRAP_SBPT) {
+ send_sig(SIGTRAP, current, 1);
+ return;
+ }
current->tss.sig_desc = SUBSIG_BADTRAP(type - 0x80);
current->tss.sig_address = pc;
send_sig(SIGILL, current, 1);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this