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>
29 #include <asm/errno.h>
30 #include <asm/offset.h>
31 #include <asm/thread_info.h>
38 cmpq threadinfo_addr_limit(%r8),%rcx
50 cmpq threadinfo_addr_limit(%r8),%rcx
65 cmpq threadinfo_addr_limit(%r8),%rcx
80 cmpq threadinfo_addr_limit(%r8),%rcx
93 .section __ex_table,"a"