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

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)