VirtualBox

Changeset 2760 in kBuild


Ignore:
Timestamp:
Jan 28, 2015 4:26:19 PM (10 years ago)
Author:
bird
Message:

main.c: Fixed stack alignment in the AMD64 specific signal emulation code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/main.c

    r2758 r2760  
    11651165    CONTEXT Ctx;
    11661166
     1167    /*fprintf(stderr, "dbg: ctrl_event sig=%d\n", sig);*/
    11671168#ifndef _M_IX86
    11681169    /* only once. */
     
    11971198#else
    11981199        g_Ctx = Ctx;
    1199         Ctx.Rsp -= 0x20;
     1200        Ctx.Rsp -= 0x80;
    12001201        Ctx.Rsp &= ~(uintptr_t)0xf;
    1201         Ctx.Rip = (uintptr_t)&dispatch_stub;
     1202        Ctx.Rsp += 8;   /* (Stack aligned before call instruction, not after.) */
     1203        Ctx.Rip  = (uintptr_t)&dispatch_stub;
    12021204#endif
    12031205
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette