projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[MIPS] Compile __do_IRQ() when really needed
[powerpc.git]
/
arch
/
mips
/
kernel
/
irixelf.c
diff --git
a/arch/mips/kernel/irixelf.c
b/arch/mips/kernel/irixelf.c
index
7ce34d4
..
ab12c8f
100644
(file)
--- a/
arch/mips/kernel/irixelf.c
+++ b/
arch/mips/kernel/irixelf.c
@@
-999,8
+999,6
@@
static inline int maydump(struct vm_area_struct *vma)
return 1;
}
return 1;
}
-#define roundup(x, y) ((((x)+((y)-1))/(y))*(y))
-
/* An ELF note in memory. */
struct memelfnote
{
/* An ELF note in memory. */
struct memelfnote
{
@@
-1077,8
+1075,8
@@
static int irix_core_dump(long signr, struct pt_regs * regs, struct file *file)
struct elfhdr elf;
off_t offset = 0, dataoff;
int limit = current->signal->rlim[RLIMIT_CORE].rlim_cur;
struct elfhdr elf;
off_t offset = 0, dataoff;
int limit = current->signal->rlim[RLIMIT_CORE].rlim_cur;
- int numnote =
4
;
- struct memelfnote notes[
4
];
+ int numnote =
3
;
+ struct memelfnote notes[
3
];
struct elf_prstatus prstatus; /* NT_PRSTATUS */
elf_fpregset_t fpu; /* NT_PRFPREG */
struct elf_prpsinfo psinfo; /* NT_PRPSINFO */
struct elf_prstatus prstatus; /* NT_PRSTATUS */
elf_fpregset_t fpu; /* NT_PRFPREG */
struct elf_prpsinfo psinfo; /* NT_PRPSINFO */
@@
-1211,20
+1209,15
@@
static int irix_core_dump(long signr, struct pt_regs * regs, struct file *file)
}
strlcpy(psinfo.pr_fname, current->comm, sizeof(psinfo.pr_fname));
}
strlcpy(psinfo.pr_fname, current->comm, sizeof(psinfo.pr_fname));
- notes[2].name = "CORE";
- notes[2].type = NT_TASKSTRUCT;
- notes[2].datasz = sizeof(*current);
- notes[2].data = current;
-
/* Try to dump the FPU. */
prstatus.pr_fpvalid = dump_fpu (regs, &fpu);
if (!prstatus.pr_fpvalid) {
numnote--;
} else {
/* Try to dump the FPU. */
prstatus.pr_fpvalid = dump_fpu (regs, &fpu);
if (!prstatus.pr_fpvalid) {
numnote--;
} else {
- notes[
3
].name = "CORE";
- notes[
3
].type = NT_PRFPREG;
- notes[
3
].datasz = sizeof(fpu);
- notes[
3
].data = &fpu;
+ notes[
2
].name = "CORE";
+ notes[
2
].type = NT_PRFPREG;
+ notes[
2
].datasz = sizeof(fpu);
+ notes[
2
].data = &fpu;
}
/* Write notes phdr entry. */
}
/* Write notes phdr entry. */