diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1997-04-29 21:13:14 +0000 |
---|---|---|
committer | <ralf@linux-mips.org> | 1997-04-29 21:13:14 +0000 |
commit | 19c9bba94152148523ba0f7ef7cffe3d45656b11 (patch) | |
tree | 40b1cb534496a7f1ca0f5c314a523c69f1fee464 /arch/sparc/kernel/sparc-stub.c | |
parent | 7206675c40394c78a90e74812bbdbf8cf3cca1be (diff) |
Import of Linux/MIPS 2.1.36
Diffstat (limited to 'arch/sparc/kernel/sparc-stub.c')
-rw-r--r-- | arch/sparc/kernel/sparc-stub.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/sparc/kernel/sparc-stub.c b/arch/sparc/kernel/sparc-stub.c index 5fa429ba5..008e9c450 100644 --- a/arch/sparc/kernel/sparc-stub.c +++ b/arch/sparc/kernel/sparc-stub.c @@ -1,4 +1,4 @@ -/* $Id: sparc-stub.c,v 1.19 1996/09/30 02:21:48 davem Exp $ +/* $Id: sparc-stub.c,v 1.20 1997/01/06 06:52:31 davem Exp $ * sparc-stub.c: KGDB support for the Linux kernel. * * Modifications to run under Linux @@ -97,6 +97,8 @@ #include <linux/kernel.h> #include <linux/string.h> #include <linux/mm.h> +#include <linux/smp.h> +#include <linux/smp_lock.h> #include <asm/system.h> #include <asm/signal.h> @@ -475,6 +477,7 @@ handle_exception (unsigned long *registers) "restore\n\t" "restore\n\t"); + lock_kernel(); if (registers[PC] == (unsigned long)breakinst) { /* Skip over breakpoint trap insn */ registers[PC] = registers[NPC]; @@ -646,6 +649,7 @@ handle_exception (unsigned long *registers) * some location may have changed something that is in the instruction cache. */ flush_cache_all(); + unlock_kernel(); return; /* kill the program */ |