Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/arm Really fix arm_cksumdata for <4 bytes of data



details:   https://anonhg.NetBSD.org/src/rev/67a6e0a35b07
branches:  trunk
changeset: 806316:67a6e0a35b07
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Feb 15 17:21:08 2015 +0000

description:
Really fix arm_cksumdata for <4 bytes of data

diffstat:

 sys/arch/arm/arm/cpu_in_cksum.S |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 14028ccbba9e -r 67a6e0a35b07 sys/arch/arm/arm/cpu_in_cksum.S
--- a/sys/arch/arm/arm/cpu_in_cksum.S   Sun Feb 15 15:56:30 2015 +0000
+++ b/sys/arch/arm/arm/cpu_in_cksum.S   Sun Feb 15 17:21:08 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu_in_cksum.S,v 1.10 2015/02/14 23:12:29 skrll Exp $  */
+/*     $NetBSD: cpu_in_cksum.S,v 1.11 2015/02/15 17:21:08 skrll Exp $  */
 
 /*
  * Copyright 2003 Wasabi Systems, Inc.
@@ -40,7 +40,7 @@
  */
 
 #include <machine/asm.h>
-RCSID("$NetBSD: cpu_in_cksum.S,v 1.10 2015/02/14 23:12:29 skrll Exp $")
+RCSID("$NetBSD: cpu_in_cksum.S,v 1.11 2015/02/15 17:21:08 skrll Exp $")
        
 #include "assym.h"
 
@@ -190,7 +190,7 @@
 #else
        RETc(eq)                        /* done */
 #endif
-       adds    r7, r7, r1              /* undo sub */
+       adds    r1, r1, r7              /* undo sub */
        subs    r7, r7, r1
        lsls    r7, r7, #3
 #if defined(__ARMEB__)



Home | Main Index | Thread Index | Old Index