VirtualBox

Changeset 87263 in vbox


Ignore:
Timestamp:
Jan 15, 2021 11:13:41 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142222
Message:

vmm/stam.h: Just include asm-arm.h and use ASMReadTSC for STAM_GET_TS. bugref:9898

File:
1 edited

Legend:

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

    r85121 r87263  
    3737# endif
    3838#endif
     39#if defined(RT_ARCH_ARM64) || defined(RT_ARCH_ARM32)
     40# include <iprt/asm-arm.h>
     41#endif
    3942
    4043RT_C_DECLS_BEGIN
     
    5558 * @param   u64     The 64-bit variable which the timestamp shall be saved in.
    5659 */
    57 #ifdef __GNUC__
     60#if defined(RT_ARCH_ARM64) || defined(RT_ARCH_ARM32)
     61#  define STAM_GET_TS(u64) do { (u64) = ASMReadTSC(); } while (0)
     62#elif defined(__GNUC__)
    5863# if defined(RT_ARCH_X86)
    5964   /* This produces optimal assembler code for x86 but does not work for AMD64 ('A' means 'either rax or rdx') */
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