]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
ppc64 ELF allows the 288 bytes below the stack pointer to be accessed.
authorJulian Seward <jseward@acm.org>
Fri, 23 Dec 2005 23:34:51 +0000 (23:34 +0000)
committerJulian Seward <jseward@acm.org>
Fri, 23 Dec 2005 23:34:51 +0000 (23:34 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5425

include/pub_tool_machine.h

index 948df5ac6c1bada853afe41503327fd69c637d2b..f4cd31292ee2d725146a1645ad84087a0a10678e 100644 (file)
@@ -36,7 +36,7 @@
 #  define VG_MAX_INSTR_SZB         16  // max length of native instruction
 #  define VG_CLREQ_SZB             18  // length of a client request, may
                                        //   be larger than VG_MAX_INSTR_SZB
-#  define VG_STACK_REDZONE_SZB      0  // number of addressable bytes below SP
+#  define VG_STACK_REDZONE_SZB      0  // number of addressable bytes below %RSP
 #elif defined(VGA_amd64)
 #  define VG_MIN_INSTR_SZB          1
 #  define VG_MAX_INSTR_SZB         16
@@ -51,7 +51,8 @@
 #  define VG_MIN_INSTR_SZB          4
 #  define VG_MAX_INSTR_SZB          4 
 #  define VG_CLREQ_SZB             24
-#  define VG_STACK_REDZONE_SZB      0
+#  define VG_STACK_REDZONE_SZB    288  // number of addressable bytes below R1
+                                       // from 64-bit PowerPC ELF ABI Supplement 1.7
 #else
 #  error Unknown arch
 #endif