2 * __get_user functions.
4 * (C) Copyright 1998 Linus Torvalds
6 * These functions have a non-standard call interface
7 * to make them more efficient, especially as they
8 * return an error value in addition to the "real"
11 #include <linux/linkage.h>
12 #include <asm/dwarf2.h>
13 #include <asm/thread_info.h>
19 * Inputs: %eax contains the address
21 * Outputs: %eax is error code (0 or -EFAULT)
22 * %edx contains zero-extended value
24 * These functions should not modify any other registers,
25 * as they get called from within inline assembly.
32 cmpl TI_addr_limit(%edx),%eax
45 cmpl TI_addr_limit(%edx),%eax
47 2: movzwl -1(%eax),%edx
58 cmpl TI_addr_limit(%edx),%eax
74 .section __ex_table,"a"