VirtualBox

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


Ignore:
Timestamp:
May 3, 2013 12:09:43 PM (12 years ago)
Author:
vboxsync
Message:

VMM: Use RT_BIT which uses unsigned to avoid nasty sign-extension issues with shifting. Also means less typing and looks cleaner.

File:
1 edited

Legend:

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

    r45684 r45894  
    11141114#define VMX_EXIT_INTERRUPTION_INFO_ERROR_CODE_IS_VALID(a)         (a & VMX_EXIT_INTERRUPTION_INFO_ERROR_CODE_VALID)
    11151115#define VMX_EXIT_INTERRUPTION_INFO_NMI_UNBLOCK(a)                 (a & RT_BIT(12))
    1116 #define VMX_EXIT_INTERRUPTION_INFO_VALID_SHIFT                    31
    1117 #define VMX_EXIT_INTERRUPTION_INFO_VALID(a)                       (a & RT_BIT(31))
     1116#ifdef VBOX_WITH_OLD_VTX_CODE
     1117# define VMX_EXIT_INTERRUPTION_INFO_VALID_SHIFT                    31
     1118#endif
     1119#define VMX_EXIT_INTERRUPTION_INFO_VALID                          RT_BIT(31)
     1120#define VMX_EXIT_INTERRUPTION_INFO_IS_VALID(a)                    (a & RT_BIT(31))
    11181121/** Construct an irq event injection value from the exit interruption info value (same except that bit 12 is reserved). */
    11191122#define VMX_VMCS_CTRL_ENTRY_IRQ_INFO_FROM_EXIT_INT_INFO(a)        (a & ~RT_BIT(12))
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