xref: /linux/arch/sparc/lib/csum_copy_from_user.S (revision cbecf716ca618fd44feda6bd9a64a8179d031fc5)
1b2441318SGreg Kroah-Hartman/* SPDX-License-Identifier: GPL-2.0 */
2478b8fecSSam Ravnborg/* csum_copy_from_user.S: Checksum+copy from userspace.
3478b8fecSSam Ravnborg *
4478b8fecSSam Ravnborg * Copyright (C) 2005 David S. Miller (davem@davemloft.net)
5478b8fecSSam Ravnborg */
6478b8fecSSam Ravnborg
7478b8fecSSam Ravnborg#define EX_LD(x)		\
8478b8fecSSam Ravnborg98:	x;			\
96373fffcSDavid S. Miller	.section .fixup, "ax";	\
10478b8fecSSam Ravnborg	.align 4;		\
11478b8fecSSam Ravnborg99:	retl;			\
12*fdf8bee9SAl Viro	 mov	0, %o0;		\
13478b8fecSSam Ravnborg	.section __ex_table,"a";\
14478b8fecSSam Ravnborg	.align 4;		\
15478b8fecSSam Ravnborg	.word 98b, 99b;		\
16478b8fecSSam Ravnborg	.text;			\
17478b8fecSSam Ravnborg	.align 4;
18478b8fecSSam Ravnborg
19*fdf8bee9SAl Viro#define FUNC_NAME		csum_and_copy_from_user
20478b8fecSSam Ravnborg#define LOAD(type,addr,dest)	type##a [addr] %asi, dest
21478b8fecSSam Ravnborg
22478b8fecSSam Ravnborg#include "csum_copy.S"
23