VirtualBox

Changeset 35298 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Dec 22, 2010 12:35:46 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
69147
Message:

VMM: fix linking dependencies for VBoxDD*R?.r? on Solaris/FreeBSD

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMGC/VMMGCDeps.cpp

    r31847 r35298  
    1919#include <iprt/string.h>
    2020
     21#if defined(RT_OS_SOLARIS) || defined(RT_OS_FREEBSD)
     22RT_C_DECLS_BEGIN
     23extern uint64_t __udivdi3(uint64_t, uint64_t);
     24extern uint64_t __umoddi3(uint64_t, uint64_t);
     25RT_C_DECLS_END
     26#endif // RT_OS_SOLARIS || RT_OS_FREEBSD
     27
    2128PFNRT g_VMMGCDeps[] =
    2229{
     
    2532    (PFNRT)memchr,
    2633    (PFNRT)memcmp,
    27     (PFNRT)RTCrc32
     34    (PFNRT)RTCrc32,
     35#if defined(RT_OS_SOLARIS) || defined(RT_OS_FREEBSD)
     36    (PFNRT)__udivdi3,
     37    (PFNRT)__umoddi3,
     38#endif // RT_OS_SOLARIS || RT_OS_FREEBSD
     39    NULL
    2840};
    2941
  • trunk/src/VBox/VMM/VMMR0/VMMR0.cpp

    r33935 r35298  
    6161VMMR0DECL(int) ModuleInit(void);
    6262VMMR0DECL(void) ModuleTerm(void);
     63
     64#if defined(RT_ARCH_X86) && (defined(RT_OS_SOLARIS) || defined(RT_OS_FREEBSD))
     65extern uint64_t __udivdi3(uint64_t, uint64_t);
     66extern uint64_t __umoddi3(uint64_t, uint64_t);
     67#endif // RT_ARCH_X86 && (RT_OS_SOLARIS || RT_OS_FREEBSD)
    6368RT_C_DECLS_END
    6469
     
    7277{
    7378    (PFNRT)RTCrc32,
    74     (PFNRT)RTOnce
     79    (PFNRT)RTOnce,
     80#if defined(RT_ARCH_X86) && (defined(RT_OS_SOLARIS) || defined(RT_OS_FREEBSD))
     81    (PFNRT)__udivdi3,
     82    (PFNRT)__umoddi3,
     83#endif // RT_ARCH_X86 && (RT_OS_SOLARIS || RT_OS_FREEBSD)
     84    NULL
    7585};
    7686
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