PERFORCE change 167579 for review
Stanislav Sedov
stas at FreeBSD.org
Fri Aug 21 19:01:40 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=167579
Change 167579 by stas at stas_yandex on 2009/08/21 19:00:55
- Correctly initialize registers on startup.
Affected files ...
.. //depot/projects/valgrind/coregrind/m_initimg/initimg-freebsd.c#8 edit
Differences ...
==== //depot/projects/valgrind/coregrind/m_initimg/initimg-freebsd.c#8 (text+ko) ====
@@ -874,7 +874,8 @@
VG_(memset)(&arch->vex_shadow2, 0, sizeof(VexGuestAMD64State));
/* Put essential stuff into the new state. */
- arch->vex.guest_RSP = iifii.initial_client_SP;
+ arch->vex.guest_RSP = ((iifii.initial_client_SP - 8) & ~0xFul) + 8;
+ arch->vex.guest_RDI = iifii.initial_client_SP;
arch->vex.guest_RIP = iifii.initial_client_IP;
# else
More information about the p4-projects
mailing list