.. | .. |
---|
8 | 8 | #include <linux/sched.h> |
---|
9 | 9 | #include <linux/thread_info.h> |
---|
10 | 10 | |
---|
| 11 | +#include <asm-generic/compat.h> |
---|
| 12 | + |
---|
11 | 13 | #define COMPAT_USER_HZ 100 |
---|
12 | 14 | #define COMPAT_UTS_MACHINE "parisc\0\0" |
---|
13 | 15 | |
---|
14 | | -typedef u32 compat_size_t; |
---|
15 | | -typedef s32 compat_ssize_t; |
---|
16 | | -typedef s32 compat_clock_t; |
---|
17 | | -typedef s32 compat_pid_t; |
---|
18 | 16 | typedef u32 __compat_uid_t; |
---|
19 | 17 | typedef u32 __compat_gid_t; |
---|
20 | 18 | typedef u32 __compat_uid32_t; |
---|
21 | 19 | typedef u32 __compat_gid32_t; |
---|
22 | 20 | typedef u16 compat_mode_t; |
---|
23 | | -typedef u32 compat_ino_t; |
---|
24 | 21 | typedef u32 compat_dev_t; |
---|
25 | | -typedef s32 compat_off_t; |
---|
26 | | -typedef s64 compat_loff_t; |
---|
27 | 22 | typedef u16 compat_nlink_t; |
---|
28 | 23 | typedef u16 compat_ipc_pid_t; |
---|
29 | | -typedef s32 compat_daddr_t; |
---|
30 | 24 | typedef u32 compat_caddr_t; |
---|
31 | | -typedef s32 compat_key_t; |
---|
32 | | -typedef s32 compat_timer_t; |
---|
33 | | - |
---|
34 | | -typedef s32 compat_int_t; |
---|
35 | | -typedef s32 compat_long_t; |
---|
36 | | -typedef s64 compat_s64; |
---|
37 | | -typedef u32 compat_uint_t; |
---|
38 | | -typedef u32 compat_ulong_t; |
---|
39 | | -typedef u64 compat_u64; |
---|
40 | | -typedef u32 compat_uptr_t; |
---|
41 | 25 | |
---|
42 | 26 | struct compat_stat { |
---|
43 | 27 | compat_dev_t st_dev; /* dev_t is 32 bits on parisc */ |
---|
.. | .. |
---|
48 | 32 | u16 st_reserved2; /* old st_gid */ |
---|
49 | 33 | compat_dev_t st_rdev; |
---|
50 | 34 | compat_off_t st_size; |
---|
51 | | - compat_time_t st_atime; |
---|
| 35 | + old_time32_t st_atime; |
---|
52 | 36 | u32 st_atime_nsec; |
---|
53 | | - compat_time_t st_mtime; |
---|
| 37 | + old_time32_t st_mtime; |
---|
54 | 38 | u32 st_mtime_nsec; |
---|
55 | | - compat_time_t st_ctime; |
---|
| 39 | + old_time32_t st_ctime; |
---|
56 | 40 | u32 st_ctime_nsec; |
---|
57 | 41 | s32 st_blksize; |
---|
58 | 42 | s32 st_blocks; |
---|
.. | .. |
---|
186 | 170 | */ |
---|
187 | 171 | #define COMPAT_ELF_NGREG 80 |
---|
188 | 172 | typedef compat_ulong_t compat_elf_gregset_t[COMPAT_ELF_NGREG]; |
---|
189 | | - |
---|
190 | | -/* |
---|
191 | | - * A pointer passed in from user mode. This should not |
---|
192 | | - * be used for syscall parameters, just declare them |
---|
193 | | - * as pointers because the syscall entry code will have |
---|
194 | | - * appropriately converted them already. |
---|
195 | | - */ |
---|
196 | | - |
---|
197 | | -static inline void __user *compat_ptr(compat_uptr_t uptr) |
---|
198 | | -{ |
---|
199 | | - return (void __user *)(unsigned long)uptr; |
---|
200 | | -} |
---|
201 | | - |
---|
202 | | -static inline compat_uptr_t ptr_to_compat(void __user *uptr) |
---|
203 | | -{ |
---|
204 | | - return (u32)(unsigned long)uptr; |
---|
205 | | -} |
---|
206 | 173 | |
---|
207 | 174 | static __inline__ void __user *arch_compat_alloc_user_space(long len) |
---|
208 | 175 | { |
---|