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 <asm/thread_info.h>
17 * Inputs: %eax[:%edx] contains the data
18 * %ecx contains the address
20 * Outputs: %eax is error code (0 or -EFAULT)
22 * These functions should not modify any other registers,
23 * as they get called from within inline assembly.
26 #define ENTER pushl %ebx ; GET_THREAD_INFO(%ebx)
27 #define EXIT popl %ebx ; ret
34 cmpl TI_addr_limit(%ebx),%ecx
44 movl TI_addr_limit(%ebx),%ebx
56 movl TI_addr_limit(%ebx),%ebx
68 movl TI_addr_limit(%ebx),%ebx
81 .section __ex_table,"a"