2 * __get_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 * The register is modified, but all changes are undone
18 * before returning because the C code doesn't know about it.
20 * Outputs: %rax is error code (0 or -EFAULT)
21 * %rdx contains zero-extended value
25 * These functions should not modify any other registers,
26 * as they get called from within inline assembly.
29 #include <linux/linkage.h>
31 #include <asm/errno.h>
32 #include <asm/offset.h>
33 #include <asm/thread_info.h>
40 cmpq threadinfo_addr_limit(%r8),%rcx
52 cmpq threadinfo_addr_limit(%r8),%rcx
67 cmpq threadinfo_addr_limit(%r8),%rcx
82 cmpq threadinfo_addr_limit(%r8),%rcx
96 .section __ex_table,"a"
100 .quad 4b,bad_get_user