svn commit: r368273 - head/sys/arm/arm

Michal Meloun mmel at FreeBSD.org
Wed Dec 2 08:14:56 UTC 2020


Author: mmel
Date: Wed Dec  2 08:14:56 2020
New Revision: 368273
URL: https://svnweb.freebsd.org/changeset/base/368273

Log:
  Fix r368153. Wrong branch of #ifdef __ARMEB__ was deleted.

Modified:
  head/sys/arm/arm/support.S

Modified: head/sys/arm/arm/support.S
==============================================================================
--- head/sys/arm/arm/support.S	Wed Dec  2 00:53:03 2020	(r368272)
+++ head/sys/arm/arm/support.S	Wed Dec  2 08:14:56 2020	(r368273)
@@ -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


More information about the svn-src-head mailing list