.. | .. |
---|
59 | 59 | pid_t pr_ppid; |
---|
60 | 60 | pid_t pr_pgrp; |
---|
61 | 61 | pid_t pr_sid; |
---|
62 | | - struct compat_timeval pr_utime; /* User time */ |
---|
63 | | - struct compat_timeval pr_stime; /* System time */ |
---|
64 | | - struct compat_timeval pr_cutime;/* Cumulative user time */ |
---|
65 | | - struct compat_timeval pr_cstime;/* Cumulative system time */ |
---|
| 62 | + struct old_timeval32 pr_utime; /* User time */ |
---|
| 63 | + struct old_timeval32 pr_stime; /* System time */ |
---|
| 64 | + struct old_timeval32 pr_cutime;/* Cumulative user time */ |
---|
| 65 | + struct old_timeval32 pr_cstime;/* Cumulative system time */ |
---|
66 | 66 | elf_gregset_t pr_reg; /* GP registers */ |
---|
67 | 67 | int pr_fpvalid; /* True if math co-processor being used. */ |
---|
68 | 68 | }; |
---|
.. | .. |
---|
86 | 86 | #define elf_caddr_t u32 |
---|
87 | 87 | #define init_elf_binfmt init_elf32_binfmt |
---|
88 | 88 | |
---|
89 | | -#define jiffies_to_timeval jiffies_to_compat_timeval |
---|
| 89 | +#define jiffies_to_timeval jiffies_to_old_timeval32 |
---|
90 | 90 | static inline void |
---|
91 | | -jiffies_to_compat_timeval(unsigned long jiffies, struct compat_timeval *value) |
---|
| 91 | +jiffies_to_old_timeval32(unsigned long jiffies, struct old_timeval32 *value) |
---|
92 | 92 | { |
---|
93 | 93 | /* |
---|
94 | 94 | * Convert jiffies to nanoseconds and separate with |
---|
.. | .. |
---|
103 | 103 | #undef TASK_SIZE |
---|
104 | 104 | #define TASK_SIZE TASK_SIZE32 |
---|
105 | 105 | |
---|
106 | | -#undef ns_to_timeval |
---|
107 | | -#define ns_to_timeval ns_to_compat_timeval |
---|
| 106 | +#undef ns_to_kernel_old_timeval |
---|
| 107 | +#define ns_to_kernel_old_timeval ns_to_old_timeval32 |
---|
| 108 | + |
---|
| 109 | +/* |
---|
| 110 | + * Some data types as stored in coredump. |
---|
| 111 | + */ |
---|
| 112 | +#define user_long_t compat_long_t |
---|
| 113 | +#define user_siginfo_t compat_siginfo_t |
---|
| 114 | +#define copy_siginfo_to_external copy_siginfo_to_external32 |
---|
108 | 115 | |
---|
109 | 116 | #include "../../../fs/binfmt_elf.c" |
---|