diff options
author | akpm@osdl.org <akpm@osdl.org> | 2006-01-09 23:51:37 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-10 11:01:25 -0500 |
commit | df2e71fb9115a8d4f721fb1464db09adc8332bc5 (patch) | |
tree | 460230de8257235dc57f9835582afb0875cbc057 /arch/cris | |
parent | be4f1bb2627c2d963d09be1cd69f8820995a9112 (diff) |
[PATCH] dump_thread() cleanup
)
From: Adrian Bunk <bunk@stusta.de>
- create one common dump_thread() prototype in kernel.h
- dump_thread() is only used in fs/binfmt_aout.c and can therefore be
removed on all architectures where CONFIG_BINFMT_AOUT is not
available
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/cris')
-rw-r--r-- | arch/cris/kernel/crisksyms.c | 2 | ||||
-rw-r--r-- | arch/cris/kernel/process.c | 28 |
2 files changed, 0 insertions, 30 deletions
diff --git a/arch/cris/kernel/crisksyms.c b/arch/cris/kernel/crisksyms.c index 85833d704ebb..de39725da920 100644 --- a/arch/cris/kernel/crisksyms.c +++ b/arch/cris/kernel/crisksyms.c | |||
@@ -21,7 +21,6 @@ | |||
21 | #include <asm/pgtable.h> | 21 | #include <asm/pgtable.h> |
22 | #include <asm/fasttimer.h> | 22 | #include <asm/fasttimer.h> |
23 | 23 | ||
24 | extern void dump_thread(struct pt_regs *, struct user *); | ||
25 | extern unsigned long get_cmos_time(void); | 24 | extern unsigned long get_cmos_time(void); |
26 | extern void __Udiv(void); | 25 | extern void __Udiv(void); |
27 | extern void __Umod(void); | 26 | extern void __Umod(void); |
@@ -33,7 +32,6 @@ extern void __lshrdi3(void); | |||
33 | extern void iounmap(volatile void * __iomem); | 32 | extern void iounmap(volatile void * __iomem); |
34 | 33 | ||
35 | /* Platform dependent support */ | 34 | /* Platform dependent support */ |
36 | EXPORT_SYMBOL(dump_thread); | ||
37 | EXPORT_SYMBOL(kernel_thread); | 35 | EXPORT_SYMBOL(kernel_thread); |
38 | EXPORT_SYMBOL(get_cmos_time); | 36 | EXPORT_SYMBOL(get_cmos_time); |
39 | EXPORT_SYMBOL(loops_per_usec); | 37 | EXPORT_SYMBOL(loops_per_usec); |
diff --git a/arch/cris/kernel/process.c b/arch/cris/kernel/process.c index 7c80afb10460..4ab3e87115b6 100644 --- a/arch/cris/kernel/process.c +++ b/arch/cris/kernel/process.c | |||
@@ -257,34 +257,6 @@ void flush_thread(void) | |||
257 | { | 257 | { |
258 | } | 258 | } |
259 | 259 | ||
260 | /* | ||
261 | * fill in the user structure for a core dump.. | ||
262 | */ | ||
263 | void dump_thread(struct pt_regs * regs, struct user * dump) | ||
264 | { | ||
265 | #if 0 | ||
266 | int i; | ||
267 | |||
268 | /* changed the size calculations - should hopefully work better. lbt */ | ||
269 | dump->magic = CMAGIC; | ||
270 | dump->start_code = 0; | ||
271 | dump->start_stack = regs->esp & ~(PAGE_SIZE - 1); | ||
272 | dump->u_tsize = ((unsigned long) current->mm->end_code) >> PAGE_SHIFT; | ||
273 | dump->u_dsize = ((unsigned long) (current->mm->brk + (PAGE_SIZE-1))) >> PAGE_SHIFT; | ||
274 | dump->u_dsize -= dump->u_tsize; | ||
275 | dump->u_ssize = 0; | ||
276 | for (i = 0; i < 8; i++) | ||
277 | dump->u_debugreg[i] = current->debugreg[i]; | ||
278 | |||
279 | if (dump->start_stack < TASK_SIZE) | ||
280 | dump->u_ssize = ((unsigned long) (TASK_SIZE - dump->start_stack)) >> PAGE_SHIFT; | ||
281 | |||
282 | dump->regs = *regs; | ||
283 | |||
284 | dump->u_fpvalid = dump_fpu (regs, &dump->i387); | ||
285 | #endif | ||
286 | } | ||
287 | |||
288 | /* Fill in the fpu structure for a core dump. */ | 260 | /* Fill in the fpu structure for a core dump. */ |
289 | int dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpu) | 261 | int dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpu) |
290 | { | 262 | { |