Path: blob/master/arch/sparc/lib/NG2copy_from_user.S
10818 views
/* NG2copy_from_user.S: Niagara-2 optimized copy from userspace.1*2* Copyright (C) 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, __retl_one_asi;\10.text; \11.align 4;1213#ifndef ASI_AIUS14#define ASI_AIUS 0x1115#endif1617#ifndef ASI_BLK_AIUS_4V18#define ASI_BLK_AIUS_4V 0x1719#endif2021#define FUNC_NAME NG2copy_from_user22#define LOAD(type,addr,dest) type##a [addr] %asi, dest23#define LOAD_BLK(addr,dest) ldda [addr] ASI_BLK_AIUS_4V, dest24#define EX_RETVAL(x) 02526#ifdef __KERNEL__27#define PREAMBLE \28rd %asi, %g1; \29cmp %g1, ASI_AIUS; \30bne,pn %icc, ___copy_in_user; \31nop32#endif3334#include "NG2memcpy.S"353637