From: Julian Seward Date: Thu, 22 Aug 2002 17:15:15 +0000 (+0000) Subject: Finish off half-done job for allowing a 4th initial stack value X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=465bdadef337412e53d948ebeb5f7465552b579d;p=thirdparty%2Fvalgrind.git Finish off half-done job for allowing a 4th initial stack value (0xE0000000 - small offset) MERGE TO HEAD git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@621 --- diff --git a/vg_scheduler.c b/vg_scheduler.c index e3790d7709..9b2dfeb92e 100644 --- a/vg_scheduler.c +++ b/vg_scheduler.c @@ -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"); }