patch-2.4.21 linux-2.4.21/arch/alpha/kernel/traps.c
Next file: linux-2.4.21/arch/alpha/lib/callback_srm.S
Previous file: linux-2.4.21/arch/alpha/kernel/time.c
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
2003-06-13 07:51:29.000000000 -0700
- Orig file:
linux-2.4.20/arch/alpha/kernel/traps.c
- Orig date:
2002-11-28 15:53:08.000000000 -0800
diff -urN linux-2.4.20/arch/alpha/kernel/traps.c linux-2.4.21/arch/alpha/kernel/traps.c
@@ -29,6 +29,7 @@
*/
static int opDEC_testing = 0;
static int opDEC_fix = 0;
+static int opDEC_checked = 0;
static unsigned long opDEC_test_pc = 0;
static void
@@ -36,6 +37,8 @@
{
unsigned long test_pc;
+ if (opDEC_checked) return;
+
lock_kernel();
opDEC_testing = 1;
@@ -48,6 +51,7 @@
: );
opDEC_testing = 0;
+ opDEC_checked = 1;
unlock_kernel();
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)