patch-2.4.22 linux-2.4.22/include/asm-ppc64/elf.h

Next file: linux-2.4.22/include/asm-ppc64/iSeries/HvLpEvent.h
Previous file: linux-2.4.22/include/asm-ppc64/eeh.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/include/asm-ppc64/elf.h linux-2.4.22/include/asm-ppc64/elf.h
@@ -88,14 +88,22 @@
 
 #define ELF_PLATFORM	(NULL)
 
-
-#define ELF_PLAT_INIT(_r)	do { \
+#if 0
+#define ELF_PLAT_INIT(_r, interp_load_addr)	do { \
 	memset(_r->gpr, 0, sizeof(_r->gpr)); \
 	_r->ctr = _r->link = _r->xer = _r->ccr = 0; \
+	_r->gpr[2] = interp_load_addr; \
+} while (0)
+#endif
+
+#define ELF_PLAT_INIT(_r)       do { \
+        memset(_r->gpr, 0, sizeof(_r->gpr)); \
+        _r->ctr = _r->link = _r->xer = _r->ccr = 0; \
 } while (0)
 
 
 
+
 #define SET_PERSONALITY(ex, ibcs2)				\
 do {	if ((ex).e_ident[EI_CLASS] == ELFCLASS32)		\
 		current->thread.flags |= PPC_FLAG_32BIT;	\

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)