]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Finish off half-done job for allowing a 4th initial stack value
authorJulian Seward <jseward@acm.org>
Thu, 22 Aug 2002 17:15:15 +0000 (17:15 +0000)
committerJulian Seward <jseward@acm.org>
Thu, 22 Aug 2002 17:15:15 +0000 (17:15 +0000)
(0xE0000000 - small offset)

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@621

vg_scheduler.c

index e3790d77093b2f806dc275df8a47958fe5a97ca0..9b2dfeb92ef511f5b5ddce57bf3797ed615fae5a 100644 (file)
@@ -566,14 +566,18 @@ void VG_(scheduler_init) ( void )
 
    if (VG_STACK_MATCHES_BASE(startup_esp, VG_STARTUP_STACK_BASE_1)
        || VG_STACK_MATCHES_BASE(startup_esp, VG_STARTUP_STACK_BASE_2) 
-       || VG_STACK_MATCHES_BASE(startup_esp, VG_STARTUP_STACK_BASE_3)) {
+       || VG_STACK_MATCHES_BASE(startup_esp, VG_STARTUP_STACK_BASE_3)
+       || VG_STACK_MATCHES_BASE(startup_esp, VG_STARTUP_STACK_BASE_4)) {
       /* Jolly good! */
    } else {
-      VG_(printf)("%%esp at startup = %p is not near %p, %p or %p; aborting\n", 
-                  (void*)startup_esp, 
-                  (void*)VG_STARTUP_STACK_BASE_1,
-                  (void*)VG_STARTUP_STACK_BASE_2,
-                  (void*)VG_STARTUP_STACK_BASE_3 );
+      VG_(printf)(
+         "%%esp at startup = %p is not near %p, %p, %p or %p; aborting\n", 
+         (void*)startup_esp, 
+         (void*)VG_STARTUP_STACK_BASE_1,
+         (void*)VG_STARTUP_STACK_BASE_2,
+         (void*)VG_STARTUP_STACK_BASE_3,
+         (void*)VG_STARTUP_STACK_BASE_4 
+      );
       VG_(panic)("unexpected %esp at startup");
    }