hc
2024-02-19 1c055e55a242a33e574e48be530e06770a210dcd
kernel/arch/mips/kernel/binfmt_elfn32.c
....@@ -54,10 +54,10 @@
5454 pid_t pr_ppid;
5555 pid_t pr_pgrp;
5656 pid_t pr_sid;
57
- struct compat_timeval pr_utime; /* User time */
58
- struct compat_timeval pr_stime; /* System time */
59
- struct compat_timeval pr_cutime;/* Cumulative user time */
60
- struct compat_timeval pr_cstime;/* Cumulative system time */
57
+ struct old_timeval32 pr_utime; /* User time */
58
+ struct old_timeval32 pr_stime; /* System time */
59
+ struct old_timeval32 pr_cutime;/* Cumulative user time */
60
+ struct old_timeval32 pr_cstime;/* Cumulative system time */
6161 elf_gregset_t pr_reg; /* GP registers */
6262 int pr_fpvalid; /* True if math co-processor being used. */
6363 };
....@@ -81,9 +81,9 @@
8181 #define elf_caddr_t u32
8282 #define init_elf_binfmt init_elfn32_binfmt
8383
84
-#define jiffies_to_timeval jiffies_to_compat_timeval
84
+#define jiffies_to_timeval jiffies_to_old_timeval32
8585 static __inline__ void
86
-jiffies_to_compat_timeval(unsigned long jiffies, struct compat_timeval *value)
86
+jiffies_to_old_timeval32(unsigned long jiffies, struct old_timeval32 *value)
8787 {
8888 /*
8989 * Convert jiffies to nanoseconds and separate with
....@@ -100,7 +100,14 @@
100100 #undef TASK_SIZE
101101 #define TASK_SIZE TASK_SIZE32
102102
103
-#undef ns_to_timeval
104
-#define ns_to_timeval ns_to_compat_timeval
103
+#undef ns_to_kernel_old_timeval
104
+#define ns_to_kernel_old_timeval ns_to_old_timeval32
105
+
106
+/*
107
+ * Some data types as stored in coredump.
108
+ */
109
+#define user_long_t compat_long_t
110
+#define user_siginfo_t compat_siginfo_t
111
+#define copy_siginfo_to_external copy_siginfo_to_external32
105112
106113 #include "../../../fs/binfmt_elf.c"