VirtualBox

Changeset 42337 in vbox for trunk/include/VBox/vmm


Ignore:
Timestamp:
Jul 24, 2012 7:50:38 AM (13 years ago)
Author:
vboxsync
Message:

CPUM: Save and restore the internal selector fields.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/cpumctx.h

    r42165 r42337  
    7777#define CPUMSELREG_FLAGS_VALID      UINT16_C(0x0001)
    7878#define CPUMSELREG_FLAGS_STALE      UINT16_C(0x0002)
     79#define CPUMSELREG_FLAGS_VALID_MASK UINT16_C(0x0003)
    7980/** @} */
    8081
     
    398399# define CPUMCTX2CORE(pCtx) ((PCPUMCTXCORE)(void *)&(pCtx)->rax)
    399400
    400 #endif /* VBOX_FOR_DTRACE_LIB */
     401/**
     402 * Gets the first selector register of a CPUMCTX.
     403 *
     404 * Use this with X86_SREG_COUNT to loop thru the selector registers.
     405 */
     406# define CPUMCTX_FIRST_SREG(a_pCtx) (&(a_pCtx)->es)
     407
     408#endif /* !VBOX_FOR_DTRACE_LIB */
    401409
    402410/**
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