Path: blob/master/arch/sparc/lib/NGcopy_from_user.S
10817 views
/* NGcopy_from_user.S: Niagara optimized copy from userspace.1*2* Copyright (C) 2006, 2007 David S. Miller ([email protected])3*/45#define EX_LD(x) \698: x; \7.section __ex_table,"a";\8.align 4; \9.word 98b, __ret_one_asi;\10.text; \11.align 4;1213#ifndef ASI_AIUS14#define ASI_AIUS 0x1115#endif1617#define FUNC_NAME NGcopy_from_user18#define LOAD(type,addr,dest) type##a [addr] ASI_AIUS, dest19#define LOAD_TWIN(addr_reg,dest0,dest1) \20ldda [addr_reg] ASI_BLK_INIT_QUAD_LDD_AIUS, dest021#define EX_RETVAL(x) %g02223#ifdef __KERNEL__24#define PREAMBLE \25rd %asi, %g1; \26cmp %g1, ASI_AIUS; \27bne,pn %icc, ___copy_in_user; \28nop29#endif3031#include "NGmemcpy.S"323334