diff options
-rw-r--r-- | arch/arm/kernel/entry-armv.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/kernel/entry-armv.S b/arch/arm/kernel/entry-armv.S index b3fb8c9e1ff2..1879e8dd2acc 100644 --- a/arch/arm/kernel/entry-armv.S +++ b/arch/arm/kernel/entry-armv.S | |||
@@ -451,9 +451,11 @@ __und_usr_thumb: | |||
451 | .arch armv6t2 | 451 | .arch armv6t2 |
452 | #endif | 452 | #endif |
453 | 2: ldrht r5, [r4] | 453 | 2: ldrht r5, [r4] |
454 | ARM_BE8(rev16 r5, r5) @ little endian instruction | ||
454 | cmp r5, #0xe800 @ 32bit instruction if xx != 0 | 455 | cmp r5, #0xe800 @ 32bit instruction if xx != 0 |
455 | blo __und_usr_fault_16 @ 16bit undefined instruction | 456 | blo __und_usr_fault_16 @ 16bit undefined instruction |
456 | 3: ldrht r0, [r2] | 457 | 3: ldrht r0, [r2] |
458 | ARM_BE8(rev16 r0, r0) @ little endian instruction | ||
457 | add r2, r2, #2 @ r2 is PC + 2, make it PC + 4 | 459 | add r2, r2, #2 @ r2 is PC + 2, make it PC + 4 |
458 | str r2, [sp, #S_PC] @ it's a 2x16bit instr, update | 460 | str r2, [sp, #S_PC] @ it's a 2x16bit instr, update |
459 | orr r0, r0, r5, lsl #16 | 461 | orr r0, r0, r5, lsl #16 |