/* SPDX-License-Identifier: GPL-2.0 */1/* NGcopy_from_user.S: Niagara optimized copy from userspace.2*3* Copyright (C) 2006, 2007 David S. Miller ([email protected])4*/56#define EX_LD(x,y) \798: x; \8.section __ex_table,"a";\9.align 4; \10.word 98b, y; \11.text; \12.align 4;1314#ifndef ASI_AIUS15#define ASI_AIUS 0x1116#endif1718#define FUNC_NAME NGcopy_from_user19#define LOAD(type,addr,dest) type##a [addr] ASI_AIUS, dest20#define LOAD_TWIN(addr_reg,dest0,dest1) \21ldda [addr_reg] ASI_BLK_INIT_QUAD_LDD_AIUS, dest022#define EX_RETVAL(x) %g02324#ifdef __KERNEL__25#define PREAMBLE \26rd %asi, %g1; \27cmp %g1, ASI_AIUS; \28bne,pn %icc, raw_copy_in_user; \29nop30#endif3132#include "NGmemcpy.S"333435