From d06e999c2a8d65dc9b6b67593f067b574fccc74c Mon Sep 17 00:00:00 2001 From: Michal Meloun Date: Wed, 2 Dec 2020 08:14:56 +0000 Subject: [PATCH] Fix r368153. Wrong branch of #ifdef __ARMEB__ was deleted. --- sys/arm/arm/support.S | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/arm/arm/support.S b/sys/arm/arm/support.S index 5c02fcf54e86..a3ee3c3b93ba 100644 --- a/sys/arm/arm/support.S +++ b/sys/arm/arm/support.S @@ -1213,10 +1213,10 @@ ENTRY(memcpy) */ ldrh r2, [r1] /* BE:r2 = ..01 LE:r2 = ..10 */ ldrh r3, [r1, #0x02] /* LE:r3 = ..23 LE:r3 = ..32 */ - mov r1, r2, lsr #8 /* r1 = ...0 */ - strb r1, [r0] - mov r2, r2, lsl #8 /* r2 = .01. */ - orr r2, r2, r3, lsr #8 /* r2 = .012 */ + strb r2, [r0] + mov r2, r2, lsr #8 /* r2 = ...1 */ + orr r2, r2, r3, lsl #8 /* r2 = .321 */ + mov r3, r3, lsr #8 /* r3 = ...3 */ strh r2, [r0, #0x01] strb r3, [r0, #0x03] RET