fixed IsValidPageAlignedPhyAddr check for VMX/SVM

This commit is contained in:
Stanislav Shwartsman 2012-12-30 19:49:20 +00:00
parent 685e0091b4
commit c6b1f6c22b

View File

@ -472,7 +472,7 @@ extern const char* cpu_mode_string(unsigned cpu_mode);
#define IsValidPhyAddr(addr) (((addr) & BX_PHY_ADDRESS_RESERVED_BITS) == 0)
#define IsValidPageAlignedPhyAddr(addr) (((addr) & BX_PHY_ADDRESS_RESERVED_BITS & ~BX_CONST64(0xfff)) == 0)
#define IsValidPageAlignedPhyAddr(addr) (((addr) & (BX_PHY_ADDRESS_RESERVED_BITS | 0xfff)) == 0)
#define CACHE_LINE_SIZE 64