hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/c6x/lib/csum_64plus.S
....@@ -1,3 +1,4 @@
1
+; SPDX-License-Identifier: GPL-2.0-only
12 ;
23 ; linux/arch/c6x/lib/csum_64plus.s
34 ;
....@@ -6,15 +7,11 @@
67 ; Copyright (C) 2006, 2009, 2010, 2011 Texas Instruments Incorporated
78 ; Author: Aurelien Jacquiot (aurelien.jacquiot@jaluna.com)
89 ;
9
-; This program is free software; you can redistribute it and/or modify
10
-; it under the terms of the GNU General Public License version 2 as
11
-; published by the Free Software Foundation.
12
-;
1310 #include <linux/linkage.h>
1411
1512 ;
16
-;unsigned int csum_partial_copy(const char *src, char * dst,
17
-; int len, int sum)
13
+;unsigned int csum_partial_copy_nocheck(const char *src, char * dst,
14
+; int len, int sum)
1815 ;
1916 ; A4: src
2017 ; B4: dst
....@@ -24,10 +21,9 @@
2421 ;
2522
2623 .text
27
-ENTRY(csum_partial_copy)
24
+ENTRY(csum_partial_copy_nocheck)
2825 MVC .S2 ILC,B30
2926
30
- MV .D1X B6,A31 ; given csum
3127 ZERO .D1 A9 ; csum (a side)
3228 || ZERO .D2 B9 ; csum (b side)
3329 || SHRU .S2X A6,2,B5 ; len / 4
....@@ -147,12 +143,11 @@
147143 SHRU .S1 A9,16,A0
148144 [A0] BNOP .S1 L91,5
149145
150
-L10: ADD .D1 A31,A9,A9
151
- MV .D1 A9,A4
146
+L10: MV .D1 A9,A4
152147
153148 BNOP .S2 B3,4
154149 MVC .S2 B30,ILC
155
-ENDPROC(csum_partial_copy)
150
+ENDPROC(csum_partial_copy_nocheck)
156151
157152 ;
158153 ;unsigned short