VirtualBox

Changeset 26237 in vbox for trunk


Ignore:
Timestamp:
Feb 4, 2010 2:40:08 PM (15 years ago)
Author:
vboxsync
Message:

REM: Must store the ldt as it gets reloaded and might have been changed. (tss task switch)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/target-i386/op_helper.c

    r23640 r26237  
    524524        for(i = 0; i < 6; i++)
    525525            stw_kernel(env->tr.base + (0x48 + i * 4), env->segs[i].selector);
     526#ifdef VBOX
     527        /* Must store the ldt as it gets reloaded and might have been changed. */
     528        stw_kernel(env->tr.base + 0x60, env->ldt.selector);
     529#endif
    526530#if defined(VBOX) && defined(DEBUG)
    527531        printf("TSS 32 bits switch\n");
     
    542546        for(i = 0; i < 4; i++)
    543547            stw_kernel(env->tr.base + (0x22 + i * 4), env->segs[i].selector);
     548#ifdef VBOX
     549        /* Must store the ldt as it gets reloaded and might have been changed. */
     550        stw_kernel(env->tr.base + 0x2a, env->ldt.selector);
     551#endif
    544552    }
    545553
Note: See TracChangeset for help on using the changeset viewer.

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