2 * Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
6 #ifndef __ARCH_UM_UACCESS_H
7 #define __ARCH_UM_UACCESS_H
9 #include "linux/config.h"
10 #include "choose-mode.h"
13 #include "../kernel/tt/include/uaccess.h"
16 #ifdef CONFIG_MODE_SKAS
17 #include "../kernel/skas/include/uaccess.h"
20 #define access_ok(type, addr, size) \
21 CHOOSE_MODE_PROC(access_ok_tt, access_ok_skas, type, addr, size)
23 static inline int verify_area(int type, const void * addr, unsigned long size)
25 return(CHOOSE_MODE_PROC(verify_area_tt, verify_area_skas, type, addr,
29 static inline int copy_from_user(void *to, const void *from, int n)
31 return(CHOOSE_MODE_PROC(copy_from_user_tt, copy_from_user_skas, to,
35 static inline int copy_to_user(void *to, const void *from, int n)
37 return(CHOOSE_MODE_PROC(copy_to_user_tt, copy_to_user_skas, to,
41 static inline int strncpy_from_user(char *dst, const char *src, int count)
43 return(CHOOSE_MODE_PROC(strncpy_from_user_tt, strncpy_from_user_skas,
47 static inline int __clear_user(void *mem, int len)
49 return(CHOOSE_MODE_PROC(__clear_user_tt, __clear_user_skas, mem, len));
52 static inline int clear_user(void *mem, int len)
54 return(CHOOSE_MODE_PROC(clear_user_tt, clear_user_skas, mem, len));
57 static inline int strnlen_user(const void *str, int len)
59 return(CHOOSE_MODE_PROC(strnlen_user_tt, strnlen_user_skas, str, len));
65 * Overrides for Emacs so that we follow Linus's tabbing style.
66 * Emacs will notice this stuff at the end of the file and automatically
67 * adjust the settings for this buffer only. This must remain at the end
69 * ---------------------------------------------------------------------------
71 * c-file-style: "linux"