hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/mips/kernel/binfmt_elfo32.c
....@@ -59,10 +59,10 @@
5959 pid_t pr_ppid;
6060 pid_t pr_pgrp;
6161 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 */
6666 elf_gregset_t pr_reg; /* GP registers */
6767 int pr_fpvalid; /* True if math co-processor being used. */
6868 };
....@@ -86,9 +86,9 @@
8686 #define elf_caddr_t u32
8787 #define init_elf_binfmt init_elf32_binfmt
8888
89
-#define jiffies_to_timeval jiffies_to_compat_timeval
89
+#define jiffies_to_timeval jiffies_to_old_timeval32
9090 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)
9292 {
9393 /*
9494 * Convert jiffies to nanoseconds and separate with
....@@ -103,7 +103,14 @@
103103 #undef TASK_SIZE
104104 #define TASK_SIZE TASK_SIZE32
105105
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
108115
109116 #include "../../../fs/binfmt_elf.c"