patch-2.3.99-pre6 linux/arch/ia64/ia32/binfmt_elf32.c
Next file: linux/arch/ia64/ia32/ia32_entry.S
Previous file: linux/arch/ia64/ia32/Makefile
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Fri Apr 21 15:21:23 2000
- Orig file:
v2.3.99-pre5/linux/arch/ia64/ia32/binfmt_elf32.c
- Orig date:
Fri Mar 10 16:40:39 2000
diff -u --recursive --new-file v2.3.99-pre5/linux/arch/ia64/ia32/binfmt_elf32.c linux/arch/ia64/ia32/binfmt_elf32.c
@@ -134,6 +134,19 @@
regs->cr_ipsr &= ~IA64_PSR_AC;
regs->loadrs = 0;
+ /*
+ * According to the ABI %edx points to an `atexit' handler.
+ * Since we don't have one we'll set it to 0 and initialize
+ * all the other registers just to make things more deterministic,
+ * ala the i386 implementation.
+ */
+ regs->r8 = 0; /* %eax */
+ regs->r11 = 0; /* %ebx */
+ regs->r9 = 0; /* %ecx */
+ regs->r10 = 0; /* %edx */
+ regs->r13 = 0; /* %ebp */
+ regs->r14 = 0; /* %esi */
+ regs->r15 = 0; /* %edi */
}
#undef STACK_TOP
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)