2 * __put_user functions.
4 * (C) Copyright 1998 Linus Torvalds
5 * (C) Copyright 2005 Andi Kleen
7 * These functions have a non-standard call interface
8 * to make them more efficient, especially as they
9 * return an error value in addition to the "real"
16 * Inputs: %rcx contains the address
17 * %rdx contains new value
19 * Outputs: %rax is error code (0 or -EFAULT)
23 * These functions should not modify any other registers,
24 * as they get called from within inline assembly.
27 #include <linux/linkage.h>
28 #include <asm/dwarf2.h>
30 #include <asm/errno.h>
31 #include <asm/asm-offsets.h>
32 #include <asm/thread_info.h>
38 cmpq threadinfo_addr_limit(%r8),%rcx
51 cmpq threadinfo_addr_limit(%r8),%rcx
67 cmpq threadinfo_addr_limit(%r8),%rcx
83 cmpq threadinfo_addr_limit(%r8),%rcx
101 .section __ex_table,"a"
102 .quad 1b,bad_put_user
103 .quad 2b,bad_put_user
104 .quad 3b,bad_put_user
105 .quad 4b,bad_put_user