Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
memcpy_user_64.c File Reference
#include "memcpy_64.c"

Go to the source code of this file.

Macros

#define _ST(p, inst, v)
 
#define _LD(p, inst)
 
#define USERCOPY_FUNC   __copy_to_user_inatomic
 
#define ST1(p, v)   _ST((p), st1, (v))
 
#define ST2(p, v)   _ST((p), st2, (v))
 
#define ST4(p, v)   _ST((p), st4, (v))
 
#define ST8(p, v)   _ST((p), st, (v))
 
#define LD1   LD
 
#define LD2   LD
 
#define LD4   LD
 
#define LD8   LD
 
#define USERCOPY_FUNC   __copy_from_user_inatomic
 
#define ST1   ST
 
#define ST2   ST
 
#define ST4   ST
 
#define ST8   ST
 
#define LD1(p)   _LD((p), ld1u)
 
#define LD2(p)   _LD((p), ld2u)
 
#define LD4(p)   _LD((p), ld4u)
 
#define LD8(p)   _LD((p), ld)
 
#define USERCOPY_FUNC   __copy_in_user_inatomic
 
#define ST1(p, v)   _ST((p), st1, (v))
 
#define ST2(p, v)   _ST((p), st2, (v))
 
#define ST4(p, v)   _ST((p), st4, (v))
 
#define ST8(p, v)   _ST((p), st, (v))
 
#define LD1(p)   _LD((p), ld1u)
 
#define LD2(p)   _LD((p), ld2u)
 
#define LD4(p)   _LD((p), ld4u)
 
#define LD8(p)   _LD((p), ld)
 

Functions

unsigned long __copy_from_user_zeroing (void *to, const void __user *from, unsigned long n)
 

Macro Definition Documentation

#define _LD (   p,
  inst 
)
Value:
({ \
unsigned long __v; \
asm("1: " #inst " %0, %1;" \
".pushsection .coldtext.memcpy,\"ax\";" \
"2: { move r0, %2; jrp lr };" \
".section __ex_table,\"a\";" \
".quad 1b, 2b;" \
".popsection" \
: "=r" (__v) : "m" (*(p)), "r" (n)); \
__v; \
})

Definition at line 39 of file memcpy_user_64.c.

#define _ST (   p,
  inst,
  v 
)
Value:
({ \
asm("1: " #inst " %0, %1;" \
".pushsection .coldtext.memcpy,\"ax\";" \
"2: { move r0, %2; jrp lr };" \
".section __ex_table,\"a\";" \
".quad 1b, 2b;" \
".popsection" \
: "=m" (*(p)) : "r" (v), "r" (n)); \
})

Definition at line 28 of file memcpy_user_64.c.

#define LD1   LD

Definition at line 79 of file memcpy_user_64.c.

#define LD1 (   p)    _LD((p), ld1u)

Definition at line 79 of file memcpy_user_64.c.

#define LD1 (   p)    _LD((p), ld1u)

Definition at line 79 of file memcpy_user_64.c.

#define LD2   LD

Definition at line 80 of file memcpy_user_64.c.

#define LD2 (   p)    _LD((p), ld2u)

Definition at line 80 of file memcpy_user_64.c.

#define LD2 (   p)    _LD((p), ld2u)

Definition at line 80 of file memcpy_user_64.c.

#define LD4   LD

Definition at line 81 of file memcpy_user_64.c.

#define LD4 (   p)    _LD((p), ld4u)

Definition at line 81 of file memcpy_user_64.c.

#define LD4 (   p)    _LD((p), ld4u)

Definition at line 81 of file memcpy_user_64.c.

#define LD8   LD

Definition at line 82 of file memcpy_user_64.c.

#define LD8 (   p)    _LD((p), ld)

Definition at line 82 of file memcpy_user_64.c.

#define LD8 (   p)    _LD((p), ld)

Definition at line 82 of file memcpy_user_64.c.

#define ST1 (   p,
  v 
)    _ST((p), st1, (v))

Definition at line 75 of file memcpy_user_64.c.

#define ST1   ST

Definition at line 75 of file memcpy_user_64.c.

#define ST1 (   p,
  v 
)    _ST((p), st1, (v))

Definition at line 75 of file memcpy_user_64.c.

#define ST2 (   p,
  v 
)    _ST((p), st2, (v))

Definition at line 76 of file memcpy_user_64.c.

#define ST2   ST

Definition at line 76 of file memcpy_user_64.c.

#define ST2 (   p,
  v 
)    _ST((p), st2, (v))

Definition at line 76 of file memcpy_user_64.c.

#define ST4 (   p,
  v 
)    _ST((p), st4, (v))

Definition at line 77 of file memcpy_user_64.c.

#define ST4   ST

Definition at line 77 of file memcpy_user_64.c.

#define ST4 (   p,
  v 
)    _ST((p), st4, (v))

Definition at line 77 of file memcpy_user_64.c.

#define ST8 (   p,
  v 
)    _ST((p), st, (v))

Definition at line 78 of file memcpy_user_64.c.

#define ST8   ST

Definition at line 78 of file memcpy_user_64.c.

#define ST8 (   p,
  v 
)    _ST((p), st, (v))

Definition at line 78 of file memcpy_user_64.c.

#define USERCOPY_FUNC   __copy_to_user_inatomic

Definition at line 74 of file memcpy_user_64.c.

#define USERCOPY_FUNC   __copy_from_user_inatomic

Definition at line 74 of file memcpy_user_64.c.

#define USERCOPY_FUNC   __copy_in_user_inatomic

Definition at line 74 of file memcpy_user_64.c.

Function Documentation

unsigned long __copy_from_user_zeroing ( void to,
const void __user from,
unsigned long  n 
)

Definition at line 85 of file memcpy_user_64.c.