VirtualBox

Changeset 1826

Show
Ignore:
Timestamp:
03/30/07 14:37:18 (2 years ago)
Author:
vboxsync
Message:

Added CPUMGetGuestCPL & CPUMGetGuestCPLEx.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy