patch-2.3.16 linux/arch/arm/kernel/ptrace.c

Next file: linux/arch/arm/kernel/semaphore.c
Previous file: linux/arch/arm/kernel/process.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.15/linux/arch/arm/kernel/ptrace.c linux/arch/arm/kernel/ptrace.c
@@ -130,7 +130,7 @@
 		val = (((signed long)val) >> shift);
 		break;
 	case 3:
-		__asm__ __volatile__("mov %0, %0, ror %1" : "=r" (val) : "0" (val), "r" (shift));
+ 		val = (val >> shift) | (val << (32 - shift));
 		break;
 	}
 printk ("=%08lX ", val);
@@ -158,7 +158,7 @@
 		val = (((signed long)val) >> shift);
 		break;
 	case 3:
-		__asm__ __volatile__("mov %0, %0, ror %1" : "=r" (val) : "0" (val), "r" (shift));
+ 		val = (val >> shift) | (val << (32 - shift));
 		break;
 	}
 printk ("=%08lX ", val);

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