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

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

diff -u --recursive --new-file v2.1.3/linux/arch/alpha/kernel/traps.c linux/arch/alpha/kernel/traps.c
@@ -135,7 +135,8 @@
 			unsigned int opcode;
 
 			/* get opcode of faulting instruction: */
-			opcode = get_user((__u32*)(regs.pc - 4)) >> 26;
+			get_user(opcode, (__u32*)(regs.pc - 4));
+			opcode >>= 26;
 			if (opcode == 0x16) {
 				/*
 				 * It's a FLTI instruction, emulate it

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov