1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * linux/arch/arm/lib/csumpartialcopy.S
5 * Copyright (C) 1995-1998 Russell King
7 #include <linux/linkage.h>
8 #include <asm/assembler.h>
12 /* Function: __u32 csum_partial_copy_nocheck(const char *src, char *dst, int len)
13 * Params : r0 = src, r1 = dst, r2 = len
14 * Returns : r0 = new checksum
18 stmfd sp!, {r1, r4 - r8, lr}
22 ldmfd sp!, {r1, r4 - r8, pc}
29 .macro load2b, reg1, reg2
38 .macro load2l, reg1, reg2
43 .macro load4l, reg1, reg2, reg3, reg4
44 ldmia r0!, {\reg1, \reg2, \reg3, \reg4}
47 #define FN_ENTRY ENTRY(csum_partial_copy_nocheck)
48 #define FN_EXIT ENDPROC(csum_partial_copy_nocheck)
50 #include "csumpartialcopygeneric.S"