VirtualBox

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


Ignore:
Timestamp:
Apr 30, 2020 7:53:39 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
137709
Message:

hmvmxinline.h,stam.h: Use the intrin.h wrapper in iprt or we'll end up trying to drag in malloc.h when IPRT_NO_CRT is defined. bugref:8489

Location:
trunk/include/VBox/vmm
Files:
2 edited

Legend:

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

    r82968 r84119  
    3636   when targeting AMD64. */
    3737#if RT_INLINE_ASM_USES_INTRIN >= 16 && defined(RT_ARCH_AMD64)
    38 # pragma warning(push)
    39 # pragma warning(disable:4668) /* Several incorrect __cplusplus uses. */
    40 # pragma warning(disable:4255) /* Incorrect __slwpcb prototype. */
    41 # include <intrin.h>
    42 # pragma warning(pop)
     38# include <iprt/sanitized/intrin.h>
    4339/* We always want them as intrinsics, no functions. */
    4440# pragma intrinsic(__vmx_on)
  • trunk/include/VBox/vmm/stam.h

    r82968 r84119  
    3333#include <iprt/stdarg.h>
    3434#ifdef _MSC_VER
    35 # if _MSC_VER >= 1400
    36 #  pragma warning(push)
    37 #  pragma warning(disable:4668) /* Several incorrect __cplusplus uses. */
    38 #  pragma warning(disable:4255) /* Incorrect __slwpcb prototype. */
    39 #  include <intrin.h>
    40 #  pragma warning(pop)
     35# if RT_MSC_PREREQ(RT_MSC_VER_VS2005)
     36#  include <iprt/sanitized/intrin.h>
    4137# endif
    4238#endif
     
    7167# endif
    7268#else
    73 # if _MSC_VER >= 1400
     69# if RT_MSC_PREREQ(RT_MSC_VER_VS2005)
    7470#  pragma intrinsic(__rdtsc)
    7571#  define STAM_GET_TS(u64)    \
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