| .. | .. |
|---|
| 1 | +; SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | ; |
|---|
| 2 | 3 | ; linux/arch/c6x/lib/csum_64plus.s |
|---|
| 3 | 4 | ; |
|---|
| .. | .. |
|---|
| 6 | 7 | ; Copyright (C) 2006, 2009, 2010, 2011 Texas Instruments Incorporated |
|---|
| 7 | 8 | ; Author: Aurelien Jacquiot (aurelien.jacquiot@jaluna.com) |
|---|
| 8 | 9 | ; |
|---|
| 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 | | -; |
|---|
| 13 | 10 | #include <linux/linkage.h> |
|---|
| 14 | 11 | |
|---|
| 15 | 12 | ; |
|---|
| 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) |
|---|
| 18 | 15 | ; |
|---|
| 19 | 16 | ; A4: src |
|---|
| 20 | 17 | ; B4: dst |
|---|
| .. | .. |
|---|
| 24 | 21 | ; |
|---|
| 25 | 22 | |
|---|
| 26 | 23 | .text |
|---|
| 27 | | -ENTRY(csum_partial_copy) |
|---|
| 24 | +ENTRY(csum_partial_copy_nocheck) |
|---|
| 28 | 25 | MVC .S2 ILC,B30 |
|---|
| 29 | 26 | |
|---|
| 30 | | - MV .D1X B6,A31 ; given csum |
|---|
| 31 | 27 | ZERO .D1 A9 ; csum (a side) |
|---|
| 32 | 28 | || ZERO .D2 B9 ; csum (b side) |
|---|
| 33 | 29 | || SHRU .S2X A6,2,B5 ; len / 4 |
|---|
| .. | .. |
|---|
| 147 | 143 | SHRU .S1 A9,16,A0 |
|---|
| 148 | 144 | [A0] BNOP .S1 L91,5 |
|---|
| 149 | 145 | |
|---|
| 150 | | -L10: ADD .D1 A31,A9,A9 |
|---|
| 151 | | - MV .D1 A9,A4 |
|---|
| 146 | +L10: MV .D1 A9,A4 |
|---|
| 152 | 147 | |
|---|
| 153 | 148 | BNOP .S2 B3,4 |
|---|
| 154 | 149 | MVC .S2 B30,ILC |
|---|
| 155 | | -ENDPROC(csum_partial_copy) |
|---|
| 150 | +ENDPROC(csum_partial_copy_nocheck) |
|---|
| 156 | 151 | |
|---|
| 157 | 152 | ; |
|---|
| 158 | 153 | ;unsigned short |
|---|