1 #ifndef __ASM_SH_UACCESS_64_H
2 #define __ASM_SH_UACCESS_64_H
5 * include/asm-sh/uaccess_64.h
7 * Copyright (C) 2000, 2001 Paolo Alberelli
8 * Copyright (C) 2003, 2004 Paul Mundt
10 * User space memory access functions
12 * Copyright (C) 1999 Niibe Yutaka
15 * MIPS implementation version 1.15 by
16 * Copyright (C) 1996, 1997, 1998 by Ralf Baechle
19 * This file is subject to the terms and conditions of the GNU General Public
20 * License. See the file "COPYING" in the main directory of this archive
24 #define __get_user_size(x,ptr,size,retval) \
30 retval = __get_user_asm_b((void *)&x, \
34 retval = __get_user_asm_w((void *)&x, \
38 retval = __get_user_asm_l((void *)&x, \
42 retval = __get_user_asm_q((void *)&x, \
46 __get_user_unknown(); \
51 extern long __get_user_asm_b(void *, long);
52 extern long __get_user_asm_w(void *, long);
53 extern long __get_user_asm_l(void *, long);
54 extern long __get_user_asm_q(void *, long);
55 extern void __get_user_unknown(void);
57 #define __put_user_size(x,ptr,size,retval) \
62 retval = __put_user_asm_b((void *)&x, \
66 retval = __put_user_asm_w((void *)&x, \
70 retval = __put_user_asm_l((void *)&x, \
74 retval = __put_user_asm_q((void *)&x, \
78 __put_user_unknown(); \
82 extern long __put_user_asm_b(void *, long);
83 extern long __put_user_asm_w(void *, long);
84 extern long __put_user_asm_l(void *, long);
85 extern long __put_user_asm_q(void *, long);
86 extern void __put_user_unknown(void);
88 #endif /* __ASM_SH_UACCESS_64_H */