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 Correct arm_cksumdata for <4 bytes of data
details: https://anonhg.NetBSD.org/src/rev/25aa38ef417e
branches: trunk
changeset: 336166:25aa38ef417e
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Feb 14 23:12:29 2015 +0000
description:
Correct arm_cksumdata for <4 bytes of data
diffstat:
sys/arch/arm/arm/cpu_in_cksum.S | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r 8c293508fa14 -r 25aa38ef417e sys/arch/arm/arm/cpu_in_cksum.S
--- a/sys/arch/arm/arm/cpu_in_cksum.S Sat Feb 14 22:40:18 2015 +0000
+++ b/sys/arch/arm/arm/cpu_in_cksum.S Sat Feb 14 23:12:29 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu_in_cksum.S,v 1.9 2015/01/06 16:24:58 christos Exp $ */
+/* $NetBSD: cpu_in_cksum.S,v 1.10 2015/02/14 23:12:29 skrll Exp $ */
/*
* Copyright 2003 Wasabi Systems, Inc.
@@ -40,7 +40,7 @@
*/
#include <machine/asm.h>
-RCSID("$NetBSD: cpu_in_cksum.S,v 1.9 2015/01/06 16:24:58 christos Exp $")
+RCSID("$NetBSD: cpu_in_cksum.S,v 1.10 2015/02/14 23:12:29 skrll Exp $")
#include "assym.h"
@@ -191,8 +191,7 @@
RETc(eq) /* done */
#endif
adds r7, r7, r1 /* undo sub */
- adds r7, r7, r1 /* r7 = offset + len */
- rsb r7, r7, #4
+ subs r7, r7, r1
lsls r7, r7, #3
#if defined(__ARMEB__)
lsrs r2, r2, r7
Home |
Main Index |
Thread Index |
Old Index