patch-2.4.14 linux/arch/alpha/kernel/traps.c

Next file: linux/arch/alpha/lib/Makefile
Previous file: linux/arch/alpha/kernel/time.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.13/linux/arch/alpha/kernel/traps.c linux/arch/alpha/kernel/traps.c
@@ -295,9 +295,13 @@
 			   we get the correct PC.  If not, we set a flag
 			   to correct it every time through.
 			*/
-			if (opDEC_testing && regs.pc == opDEC_test_pc) {
-				opDEC_fix = 4;
-				printk("opDEC fixup enabled.\n");
+			if (opDEC_testing) {
+				if (regs.pc == opDEC_test_pc) {
+					opDEC_fix = 4;
+					regs.pc += 4;
+					printk("opDEC fixup enabled.\n");
+				}
+				return;
 			}
 			regs.pc += opDEC_fix; 
 			

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)