VirtualBox

Changeset 42337 in vbox for trunk/include


Ignore:
Timestamp:
Jul 24, 2012 7:50:38 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
79413
Message:

CPUM: Save and restore the internal selector fields.

Location:
trunk/include
Files:
2 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/**
  • trunk/include/iprt/x86.h

    r42157 r42337  
    31413141#define X86_SREG_GS             5
    31423142/** @} */
     3143/** Segment register count. */
     3144#define X86_SREG_COUNT          6
    31433145
    31443146
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