patch-2.1.51 linux/include/asm-ppc/elf.h
Next file: linux/include/asm-ppc/ide.h
Previous file: linux/include/asm-ppc/dma.h
Back to the patch index
Back to the overall index
-  Lines: 22
-  Date:
Sat Aug 16 09:51:09 1997
-  Orig file: 
v2.1.50/linux/include/asm-ppc/elf.h
-  Orig date: 
Wed Dec 18 00:54:09 1996
diff -u --recursive --new-file v2.1.50/linux/include/asm-ppc/elf.h linux/include/asm-ppc/elf.h
@@ -6,8 +6,8 @@
  */
 #include <asm/ptrace.h>
 
-#define ELF_NGREG	32
-#define ELF_NFPREG	32
+#define ELF_NGREG	48	/* includes nip, msr, lr, etc. */
+#define ELF_NFPREG	33	/* includes fpscr */
 
 /*
  * This is used to ensure we don't load something for the wrong architecture.
@@ -29,5 +29,10 @@
 
 typedef double elf_fpreg_t;
 typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
+
+#define ELF_CORE_COPY_REGS(gregs, regs) \
+	memcpy(gregs, regs, \
+	       sizeof(struct pt_regs) < sizeof(elf_gregset_t)? \
+	       sizeof(struct pt_regs): sizeof(elf_gregset_t));
 
 #endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov