VirtualBox

Changeset 418 in vbox


Ignore:
Timestamp:
Jan 29, 2007 6:07:22 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
17991
Message:

swapgs on AMD64 entry.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDRVShared.c

    r403 r418  
    28222822    *u.pb++ = 2;
    28232823
    2824     /* jump to forward code. */
     2824    /* jump to forwarder code. */
    28252825    *u.pb++ = 0xeb;
    28262826    uFixJmp = u;
    28272827    *u.pb++ = 0xfe;
    28282828
    2829     /* Call _VMMR0Entry */              //  @VBoxCall:
    2830     /* (This pushing of the arguments is NOT necessary, but it may ease debugging.) */
    2831 # ifdef __WIN64__
     2829                                        //  @VBoxCall:
     2830    *u.pb++ = 0x0f;                     //  swapgs
     2831    *u.pb++ = 0x01;
     2832    *u.pb++ = 0xf8;
     2833
     2834    /*
     2835     * Call VMMR0Entry
     2836     *      We don't have to push the arguments here, but we have to
     2837     *      reserve some stack space for the interrupt forwarding.
     2838     */
     2839# ifdef __WIN__
    28322840    *u.pb++ = 0x50;                     //  push    rax                             ; alignment filler.
    28332841    *u.pb++ = 0x41;                     //  push    r8                              ; uArg
     
    28512859    *u.pb++ = 0xc4;
    28522860    *u.pu32++ = 0x20;
     2861
     2862    *u.pb++ = 0x0f;                     // swapgs
     2863    *u.pb++ = 0x01;
     2864    *u.pb++ = 0xf8;
    28532865
    28542866    /* Return to R3. */
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