2 * __put_user functions.
4 * (C) Copyright 2005 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[:%edx] contains the data
20 * %ecx contains the address
22 * Outputs: %eax is error code (0 or -EFAULT)
24 * These functions should not modify any other registers,
25 * as they get called from within inline assembly.
28 #define ENTER CFI_STARTPROC ; \
30 CFI_ADJUST_CFA_OFFSET 4 ; \
31 CFI_REL_OFFSET ebx, 0 ; \
33 #define EXIT popl %ebx ; \
34 CFI_ADJUST_CFA_OFFSET -4 ; \
42 cmpl TI_addr_limit(%ebx),%ecx
51 movl TI_addr_limit(%ebx),%ebx
62 movl TI_addr_limit(%ebx),%ebx
73 movl TI_addr_limit(%ebx),%ebx
92 .section __ex_table,"a"