2 * linux/arch/arm/lib/csumpartialcopy.S
4 * Copyright (C) 1995-1998 Russell King
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
10 #include <linux/linkage.h>
11 #include <asm/assembler.h>
15 /* Function: __u32 csum_partial_copy_nocheck(const char *src, char *dst, int len, __u32 sum)
16 * Params : r0 = src, r1 = dst, r2 = len, r3 = checksum
17 * Returns : r0 = new checksum
21 stmfd sp!, {r1, r4 - r8, fp, ip, lr, pc}
24 .macro load_regs,flags
25 LOADREGS(\flags,fp,{r1, r4 - r8, fp, sp, pc})
32 .macro load2b, reg1, reg2
41 .macro load2l, reg1, reg2
46 .macro load4l, reg1, reg2, reg3, reg4
47 ldmia r0!, {\reg1, \reg2, \reg3, \reg4}
50 #define FN_ENTRY ENTRY(csum_partial_copy_nocheck)
52 #include "csumpartialcopygeneric.S"