VirtualBox

Ignore:
Timestamp:
Apr 5, 2012 11:45:14 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
77289
Message:

Seems to work on linux too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDrvTracer.cpp

    r40783 r40784  
    872872 */
    873873#if defined(__GNUC__) && (defined(RT_OS_FREEBSD) || defined(RT_OS_LINUX))
    874 # if 1 /* Need to check this out on linux (on mac now) */
    875 /*DECLASM(void)   supdrvTracerProbeFireStub(void);*/
    876874__asm__ __volatile__("\
    877     .section .text                                                      \n\
     875        .section .text                                                  \n\
    878876                                                                        \n\
    879     .p2align 2,,3                                                       \n\
    880     .global SUPR0TracerFireProbe                                        \n\
     877        .p2align 2,,3                                                   \n\
     878        .global SUPR0TracerFireProbe                                    \n\
    881879SUPR0TracerFireProbe:                                                   \n\
    882880");
    883881# if   defined(RT_ARCH_AMD64)
    884882__asm__ __volatile__(" \
    885         movq    g_pfnSupdrvProbeFireKernel(%rip), %rax                      \n\
    886         jmp         *%rax \n\
    887 ");                     
     883            movq    g_pfnSupdrvProbeFireKernel(%rip), %rax                  \n\
     884            jmp     *%rax \n\
     885");
    888886# elif defined(RT_ARCH_X86)
    889887__asm__ __volatile__("\
    890         movl    g_pfnSupdrvProbeFireKernel, %eax                            \n\
    891         jmp         *%eax \n\
     888            movl    g_pfnSupdrvProbeFireKernel, %eax                        \n\
     889            jmp     *%eax \n\
    892890");
    893891# else
     
    896894__asm__ __volatile__("\
    897895                                                                        \n\
    898     .type supdrvTracerProbeFireStub,@function                           \n\
    899     .global supdrvTracerProbeFireStub                                   \n\
     896        .type supdrvTracerProbeFireStub,@function                       \n\
     897        .global supdrvTracerProbeFireStub                               \n\
    900898supdrvTracerProbeFireStub:                                              \n\
    901     ret                                                                 \n\
     899        ret                                                             \n\
    902900                                                                        \n\
    903     .previous                                                           \n\
     901        .previous                                                       \n\
    904902");
    905 
    906 # else
    907 SUPR0DECL(void) SUPR0TracerFireProbe(uint32_t idProbe, uintptr_t uArg0, uintptr_t uArg1, uintptr_t uArg2,
    908                                      uintptr_t uArg3, uintptr_t uArg4)
    909 {
    910     return;
    911 }
    912 
    913 DECLASM(void)   supdrvTracerProbeFireStub(void)
    914 {
    915     return;
    916 }
    917 # endif
    918903#endif
    919904
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