VirtualBox

Changeset 40783 in vbox


Ignore:
Timestamp:
Apr 5, 2012 11:37:23 PM (13 years ago)
Author:
vboxsync
Message:

SUPR0TracerFireProbe and supdrvTracerProbeFireStub that assembles on solaris at least.

File:
1 edited

Legend:

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

    r40782 r40783  
    872872 */
    873873#if defined(__GNUC__) && (defined(RT_OS_FREEBSD) || defined(RT_OS_LINUX))
    874 # if 0 /* Need to check this out on linux (on mac now) */
     874# if 1 /* Need to check this out on linux (on mac now) */
    875875/*DECLASM(void)   supdrvTracerProbeFireStub(void);*/
    876876__asm__ __volatile__("\
    877     .pushsection .text                                                  \
    878                                                                         \
    879     .p2align 2,,3                                                       \
    880     .type supdrvTracerProbeFireStub,@function                           \
    881     .global supdrvTracerProbeFireStub                                   \
    882 supdrvTracerProbeFireStub:                                              \
    883     ret                                                                 \
    884 supdrvTracerProbeFireStub_End:                                          \
    885     .size supdrvTracerProbeFireStub_End - supdrvTracerProbeFireStub     \
    886                                                                         \
    887     .p2align 2,,3                                                       \
    888     .global SUPR0TracerFireProbe                                        \
    889 SUPR0TracerFireProbe:                                                   \
     877    .section .text                                                      \n\
     878                                                                        \n\
     879    .p2align 2,,3                                                       \n\
     880    .global SUPR0TracerFireProbe                                        \n\
     881SUPR0TracerFireProbe:                                                   \n\
    890882");
    891883# if   defined(RT_ARCH_AMD64)
    892 __asm__ __volatile__("                                                  \
    893     mov     g_pfnSupdrvProbeFireKernel(%rip), %rax                      \
    894     jmp     *%rax                                                       \
    895 ");
     884__asm__ __volatile__(" \
     885        movq    g_pfnSupdrvProbeFireKernel(%rip), %rax                      \n\
     886        jmp         *%rax \n\
     887");                     
    896888# elif defined(RT_ARCH_X86)
    897 __asm__ __volatile__("                                                  \
    898     mov     g_pfnSupdrvProbeFireKernel, %eax                            \
    899     jmp     *%eax                                                       \
     889__asm__ __volatile__("\
     890        movl    g_pfnSupdrvProbeFireKernel, %eax                            \n\
     891        jmp         *%eax \n\
    900892");
    901893# else
    902894#  error "Which arch is this?"
    903895#endif
    904 __asm__ __volatile__("                                                  \
    905 SUPR0TracerFireProbe_End:                                               \
    906     .size SUPR0TracerFireProbe_End - SUPR0TracerFireProbe               \
    907     .popsection                                                         \
     896__asm__ __volatile__("\
     897                                                                        \n\
     898    .type supdrvTracerProbeFireStub,@function                           \n\
     899    .global supdrvTracerProbeFireStub                                   \n\
     900supdrvTracerProbeFireStub:                                              \n\
     901    ret                                                                 \n\
     902                                                                        \n\
     903    .previous                                                           \n\
    908904");
    909905
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