Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /* GENcopy_from_user.S: Generic sparc64 copy from userspace.
0003  *
0004  * Copyright (C) 2007 David S. Miller (davem@davemloft.net)
0005  */
0006 
0007 #define EX_LD(x,y)      \
0008 98: x;          \
0009     .section __ex_table,"a";\
0010     .align 4;       \
0011     .word 98b, y;       \
0012     .text;          \
0013     .align 4;
0014 
0015 #ifndef ASI_AIUS
0016 #define ASI_AIUS    0x11
0017 #endif
0018 
0019 #define FUNC_NAME       GENcopy_from_user
0020 #define LOAD(type,addr,dest)    type##a [addr] ASI_AIUS, dest
0021 #define EX_RETVAL(x)        0
0022 
0023 #ifdef __KERNEL__
0024 #define PREAMBLE                    \
0025     rd      %asi, %g1;          \
0026     cmp     %g1, ASI_AIUS;          \
0027     bne,pn      %icc, raw_copy_in_user;     \
0028      nop
0029 #endif
0030 
0031 #include "GENmemcpy.S"