diff options
Diffstat (limited to 'arch/sh64/kernel')
-rw-r--r-- | arch/sh64/kernel/process.c | 20 | ||||
-rw-r--r-- | arch/sh64/kernel/sh_ksyms.c | 2 |
2 files changed, 0 insertions, 22 deletions
diff --git a/arch/sh64/kernel/process.c b/arch/sh64/kernel/process.c index b95d04141855..419b5a710441 100644 --- a/arch/sh64/kernel/process.c +++ b/arch/sh64/kernel/process.c | |||
@@ -775,26 +775,6 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long usp, | |||
775 | return 0; | 775 | return 0; |
776 | } | 776 | } |
777 | 777 | ||
778 | /* | ||
779 | * fill in the user structure for a core dump.. | ||
780 | */ | ||
781 | void dump_thread(struct pt_regs * regs, struct user * dump) | ||
782 | { | ||
783 | dump->magic = CMAGIC; | ||
784 | dump->start_code = current->mm->start_code; | ||
785 | dump->start_data = current->mm->start_data; | ||
786 | dump->start_stack = regs->regs[15] & ~(PAGE_SIZE - 1); | ||
787 | dump->u_tsize = (current->mm->end_code - dump->start_code) >> PAGE_SHIFT; | ||
788 | dump->u_dsize = (current->mm->brk + (PAGE_SIZE-1) - dump->start_data) >> PAGE_SHIFT; | ||
789 | dump->u_ssize = (current->mm->start_stack - dump->start_stack + | ||
790 | PAGE_SIZE - 1) >> PAGE_SHIFT; | ||
791 | /* Debug registers will come here. */ | ||
792 | |||
793 | dump->regs = *regs; | ||
794 | |||
795 | dump->u_fpvalid = dump_fpu(regs, &dump->fpu); | ||
796 | } | ||
797 | |||
798 | asmlinkage int sys_fork(unsigned long r2, unsigned long r3, | 778 | asmlinkage int sys_fork(unsigned long r2, unsigned long r3, |
799 | unsigned long r4, unsigned long r5, | 779 | unsigned long r4, unsigned long r5, |
800 | unsigned long r6, unsigned long r7, | 780 | unsigned long r6, unsigned long r7, |
diff --git a/arch/sh64/kernel/sh_ksyms.c b/arch/sh64/kernel/sh_ksyms.c index 0b5497d70bd3..472b450e61be 100644 --- a/arch/sh64/kernel/sh_ksyms.c +++ b/arch/sh64/kernel/sh_ksyms.c | |||
@@ -29,7 +29,6 @@ | |||
29 | #include <asm/delay.h> | 29 | #include <asm/delay.h> |
30 | #include <asm/irq.h> | 30 | #include <asm/irq.h> |
31 | 31 | ||
32 | extern void dump_thread(struct pt_regs *, struct user *); | ||
33 | extern int dump_fpu(struct pt_regs *, elf_fpregset_t *); | 32 | extern int dump_fpu(struct pt_regs *, elf_fpregset_t *); |
34 | 33 | ||
35 | #if 0 | 34 | #if 0 |
@@ -41,7 +40,6 @@ EXPORT_SYMBOL(drive_info); | |||
41 | #endif | 40 | #endif |
42 | 41 | ||
43 | /* platform dependent support */ | 42 | /* platform dependent support */ |
44 | EXPORT_SYMBOL(dump_thread); | ||
45 | EXPORT_SYMBOL(dump_fpu); | 43 | EXPORT_SYMBOL(dump_fpu); |
46 | EXPORT_SYMBOL(iounmap); | 44 | EXPORT_SYMBOL(iounmap); |
47 | EXPORT_SYMBOL(enable_irq); | 45 | EXPORT_SYMBOL(enable_irq); |