VirtualBox

Changeset 1826 in vbox for trunk/include


Ignore:
Timestamp:
Mar 30, 2007 12:37:18 PM (18 years ago)
Author:
vboxsync
Message:

Added CPUMGetGuestCPL & CPUMGetGuestCPLEx.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/cpum.h

    r1133 r1826  
    679679CPUMDECL(void) CPUMSetHiddenSelRegsValid(PVM pVM, bool fValid);
    680680
     681/**
     682 * Get the current privilege level of the guest.
     683 *
     684 * @returns cpl
     685 * @param   pVM         VM Handle.
     686 * @param   pRegFrame   Trap register frame.
     687 * @param   eflags      Current eflags
     688 */
     689CPUMDECL(uint32_t) CPUMGetGuestCPLEx(PVM pVM, PCPUMCTXCORE pCtxCore, X86EFLAGS eflags);
     690
     691/**
     692 * Get the current privilege level of the guest.
     693 *
     694 * @returns cpl
     695 * @param   pVM         VM Handle.
     696 * @param   pRegFrame   Trap register frame.
     697 */
     698DECLINLINE(uint32_t) CPUMGetGuestCPL(PVM pVM, PCPUMCTXCORE pCtxCore)
     699{
     700    return CPUMGetGuestCPLEx(pVM, pCtxCore, pCtxCore->eflags);
     701}
     702
    681703
    682704#ifdef IN_RING3
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