[xtensa-cvscommit] linux/arch/xtensa/kernel process.c,1.11,1.12
Brought to you by:
zankel
|
From: <ahe...@us...> - 2003-04-16 00:44:25
|
Update of /cvsroot/xtensa/linux/arch/xtensa/kernel
In directory sc8-pr-cvs1:/tmp/cvs-serv9705/arch/xtensa/kernel
Modified Files:
process.c
Log Message:
Added config option CONFIG_MULTITHREADED_CORES and dump_task_fpu() function.
Index: process.c
===================================================================
RCS file: /cvsroot/xtensa/linux/arch/xtensa/kernel/process.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** process.c 4 Mar 2003 07:39:31 -0000 1.11
--- process.c 16 Apr 2003 00:44:22 -0000 1.12
***************
*** 424,438 ****
/*
! * Fill in the CP structure for a core dump.
! * This includes any FPU coprocessor.
! * Here, we dump all coprocessors, and other ("extra") custom state.
! *
! * This function is called by elf_core_dump() in fs/binfmt_elf.c
! * (in which case 'regs' comes from calls to do_coredump, see signals.c).
*/
! int dump_fpu(struct pt_regs *regs, elf_fpregset_t *r)
{
#if TOTAL_CPEXTRA_SIZE > 16 /* see asm/cpextra.h for this magic number 16 */
! do_save_fpregs (r, regs, current); /* XTFIXME: will regs always be for current? */
/* For now, bit 16 means some extra state may be present: */
--- 424,433 ----
/*
! * Fill in the CP structure for a core dump for a particular task.
*/
! int dump_task_fpu(struct pt_regs *regs, struct task_struct *task, elf_fpregset_t *r)
{
#if TOTAL_CPEXTRA_SIZE > 16 /* see asm/cpextra.h for this magic number 16 */
! do_save_fpregs (r, regs, task);
/* For now, bit 16 means some extra state may be present: */
***************
*** 441,444 ****
--- 436,452 ----
return 0; /* no coprocessors active on this processor */
#endif
+ }
+
+ /*
+ * Fill in the CP structure for a core dump.
+ * This includes any FPU coprocessor.
+ * Here, we dump all coprocessors, and other ("extra") custom state.
+ *
+ * This function is called by elf_core_dump() in fs/binfmt_elf.c
+ * (in which case 'regs' comes from calls to do_coredump, see signals.c).
+ */
+ int dump_fpu(struct pt_regs *regs, elf_fpregset_t *r)
+ {
+ return dump_task_fpu (regs, current, r);
}
|