diff options
Diffstat (limited to 'arch/mips/kernel')
| -rw-r--r-- | arch/mips/kernel/irixelf.c | 17 | ||||
| -rw-r--r-- | arch/mips/kernel/ptrace.c | 2 | ||||
| -rw-r--r-- | arch/mips/kernel/time.c | 4 |
3 files changed, 7 insertions, 16 deletions
diff --git a/arch/mips/kernel/irixelf.c b/arch/mips/kernel/irixelf.c index 7ce34d4aa220..10d3644e3608 100644 --- a/arch/mips/kernel/irixelf.c +++ b/arch/mips/kernel/irixelf.c | |||
| @@ -1077,8 +1077,8 @@ static int irix_core_dump(long signr, struct pt_regs * regs, struct file *file) | |||
| 1077 | struct elfhdr elf; | 1077 | struct elfhdr elf; |
| 1078 | off_t offset = 0, dataoff; | 1078 | off_t offset = 0, dataoff; |
| 1079 | int limit = current->signal->rlim[RLIMIT_CORE].rlim_cur; | 1079 | int limit = current->signal->rlim[RLIMIT_CORE].rlim_cur; |
| 1080 | int numnote = 4; | 1080 | int numnote = 3; |
| 1081 | struct memelfnote notes[4]; | 1081 | struct memelfnote notes[3]; |
| 1082 | struct elf_prstatus prstatus; /* NT_PRSTATUS */ | 1082 | struct elf_prstatus prstatus; /* NT_PRSTATUS */ |
| 1083 | elf_fpregset_t fpu; /* NT_PRFPREG */ | 1083 | elf_fpregset_t fpu; /* NT_PRFPREG */ |
| 1084 | struct elf_prpsinfo psinfo; /* NT_PRPSINFO */ | 1084 | struct elf_prpsinfo psinfo; /* NT_PRPSINFO */ |
| @@ -1211,20 +1211,15 @@ static int irix_core_dump(long signr, struct pt_regs * regs, struct file *file) | |||
| 1211 | } | 1211 | } |
| 1212 | strlcpy(psinfo.pr_fname, current->comm, sizeof(psinfo.pr_fname)); | 1212 | strlcpy(psinfo.pr_fname, current->comm, sizeof(psinfo.pr_fname)); |
| 1213 | 1213 | ||
| 1214 | notes[2].name = "CORE"; | ||
| 1215 | notes[2].type = NT_TASKSTRUCT; | ||
| 1216 | notes[2].datasz = sizeof(*current); | ||
| 1217 | notes[2].data = current; | ||
| 1218 | |||
| 1219 | /* Try to dump the FPU. */ | 1214 | /* Try to dump the FPU. */ |
| 1220 | prstatus.pr_fpvalid = dump_fpu (regs, &fpu); | 1215 | prstatus.pr_fpvalid = dump_fpu (regs, &fpu); |
| 1221 | if (!prstatus.pr_fpvalid) { | 1216 | if (!prstatus.pr_fpvalid) { |
| 1222 | numnote--; | 1217 | numnote--; |
| 1223 | } else { | 1218 | } else { |
| 1224 | notes[3].name = "CORE"; | 1219 | notes[2].name = "CORE"; |
| 1225 | notes[3].type = NT_PRFPREG; | 1220 | notes[2].type = NT_PRFPREG; |
| 1226 | notes[3].datasz = sizeof(fpu); | 1221 | notes[2].datasz = sizeof(fpu); |
| 1227 | notes[3].data = &fpu; | 1222 | notes[2].data = &fpu; |
| 1228 | } | 1223 | } |
| 1229 | 1224 | ||
| 1230 | /* Write notes phdr entry. */ | 1225 | /* Write notes phdr entry. */ |
diff --git a/arch/mips/kernel/ptrace.c b/arch/mips/kernel/ptrace.c index fcceab8f2e00..f1b0f3e1f95b 100644 --- a/arch/mips/kernel/ptrace.c +++ b/arch/mips/kernel/ptrace.c | |||
| @@ -174,7 +174,7 @@ int ptrace_setfpregs (struct task_struct *child, __u32 __user *data) | |||
| 174 | return 0; | 174 | return 0; |
| 175 | } | 175 | } |
| 176 | 176 | ||
| 177 | asmlinkage int sys_ptrace(long request, long pid, long addr, long data) | 177 | asmlinkage long sys_ptrace(long request, long pid, long addr, long data) |
| 178 | { | 178 | { |
| 179 | struct task_struct *child; | 179 | struct task_struct *child; |
| 180 | int ret; | 180 | int ret; |
diff --git a/arch/mips/kernel/time.c b/arch/mips/kernel/time.c index a24651dfaaba..787ed541d442 100644 --- a/arch/mips/kernel/time.c +++ b/arch/mips/kernel/time.c | |||
| @@ -45,10 +45,6 @@ | |||
| 45 | 45 | ||
| 46 | #define TICK_SIZE (tick_nsec / 1000) | 46 | #define TICK_SIZE (tick_nsec / 1000) |
| 47 | 47 | ||
| 48 | u64 jiffies_64 = INITIAL_JIFFIES; | ||
| 49 | |||
| 50 | EXPORT_SYMBOL(jiffies_64); | ||
| 51 | |||
| 52 | /* | 48 | /* |
| 53 | * forward reference | 49 | * forward reference |
| 54 | */ | 50 | */ |
