Rev 6934 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6934 | Rev 7143 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #ifndef __LINUX_UACCESS_H__ |
1 | #ifndef __LINUX_UACCESS_H__ |
2 | #define __LINUX_UACCESS_H__ |
2 | #define __LINUX_UACCESS_H__ |
Line 3... | Line 3... | ||
3 | 3 | ||
- | 4 | #include |
|
4 | #include |
5 | #include |
5 | /* |
6 | /* |
6 | * These routines enable/disable the pagefault handler. If disabled, it will |
7 | * These routines enable/disable the pagefault handler. If disabled, it will |
7 | * not take any locks and go straight to the fixup table. |
8 | * not take any locks and go straight to the fixup table. |
8 | * |
9 | * |
Line 14... | Line 15... | ||
14 | } |
15 | } |
Line 15... | Line 16... | ||
15 | 16 | ||
16 | static inline void pagefault_enable(void) |
17 | static inline void pagefault_enable(void) |
17 | { |
18 | { |
- | 19 | } |
|
- | 20 | #ifndef ARCH_HAS_NOCACHE_UACCESS |
|
- | 21 | ||
- | 22 | static inline unsigned long __copy_from_user_inatomic_nocache(void *to, |
|
- | 23 | const void __user *from, unsigned long n) |
|
- | 24 | { |
|
- | 25 | return __copy_from_user_inatomic(to, from, n); |
|
- | 26 | } |
|
- | 27 | ||
- | 28 | static inline unsigned long __copy_from_user_nocache(void *to, |
|
- | 29 | const void __user *from, unsigned long n) |
|
- | 30 | { |
|
- | 31 | return __copy_from_user(to, from, n); |
|
- | 32 | } |
|
- | 33 | ||
Line 18... | Line 34... | ||
18 | } |
34 | #endif /* ARCH_HAS_NOCACHE_UACCESS */ |