patch-2.0.11 linux/arch/alpha/kernel/process.c

Next file: linux/arch/alpha/lib/memcpy.c
Previous file: linux/arch/alpha/kernel/ksyms.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.10/linux/arch/alpha/kernel/process.c linux/arch/alpha/kernel/process.c
@@ -25,6 +25,7 @@
 #include <linux/major.h>
 #include <linux/stat.h>
 #include <linux/mman.h>
+#include <linux/elfcore.h>
 
 #include <asm/reg.h>
 #include <asm/segment.h>
@@ -205,6 +206,14 @@
 	dump->regs[EF_A1]  = pt->r17;
 	dump->regs[EF_A2]  = pt->r18;
 	memcpy((char *)dump->regs + EF_SIZE, sw->fp, 32 * 8);
+}
+
+int dump_fpu (struct pt_regs * regs, elf_fpregset_t *r)
+{
+	/* switch stack follows right below pt_regs: */
+	struct switch_stack * sw = ((struct switch_stack *) regs) - 1;
+	memcpy(r, sw->fp, 32 * 8);
+	return 1;
 }
 
 /*

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov