patch-2.4.5 linux/include/asm-cris/elf.h
Next file: linux/include/asm-cris/etraxgpio.h
Previous file: linux/include/asm-cris/axisflashmap.h
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Tue May 1 16:05:00 2001
- Orig file:
v2.4.4/linux/include/asm-cris/elf.h
- Orig date:
Thu Feb 8 16:32:44 2001
diff -u --recursive --new-file v2.4.4/linux/include/asm-cris/elf.h linux/include/asm-cris/elf.h
@@ -36,7 +36,14 @@
that have been loaded before the code runs.
A value of 0 tells we have no such handler. */
-#define ELF_PLAT_INIT(_r) ((_r)->r10 = 0)
+
+ /* Explicitly set registers to 0 to increase determinism. */
+#define ELF_PLAT_INIT(_r) do { \
+ (_r)->r13 = 0; (_r)->r12 = 0; (_r)->r11 = 0; (_r)->r10 = 0; \
+ (_r)->r9 = 0; (_r)->r8 = 0; (_r)->r7 = 0; (_r)->r6 = 0; \
+ (_r)->r5 = 0; (_r)->r4 = 0; (_r)->r3 = 0; (_r)->r2 = 0; \
+ (_r)->r1 = 0; (_r)->r0 = 0; (_r)->mof = 0; (_r)->srp = 0; \
+} while (0)
#undef USE_ELF_CORE_DUMP
#define ELF_EXEC_PAGESIZE 8192
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)