VirtualBox

Changeset 19496 in vbox


Ignore:
Timestamp:
May 7, 2009 5:52:01 PM (16 years ago)
Author:
vboxsync
Message:

Solaris optimized version of RTMpPokeCpu

Location:
trunk/src/VBox/Runtime
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/Makefile.kmk

    r19389 r19496  
    13161316ifdef VBOX_WITH_SOLARIS_VBI
    13171317 RuntimeR0Drv_SOURCES.solaris += \
    1318         r0drv/generic/RTMpPokeCpu-r0drv-generic.cpp \
     1318        r0drv/solaris/vbi/RTMpPokeCpu-r0drv-solaris.c \
    13191319        r0drv/solaris/vbi/mpnotification-r0drv-solaris.c \
    13201320        r0drv/solaris/vbi/alloc-r0drv-solaris.c \
     
    13541354        r0drv/generic/RTMpIsCpuWorkPending-r0drv-generic.cpp \
    13551355        r0drv/generic/RTMpOn-r0drv-generic.cpp \
    1356         r0drv/generic/RTMpPokeCpu-r0drv-generic.cpp
     1356        r0drv/solaris/RTMpPokeCpu-r0drv-solaris.c
    13571357 else
    13581358  # Use mp-r0drv-solaris.c.
    13591359  RuntimeR0Drv_SOURCES.solaris += \
    13601360        r0drv/solaris/mp-r0drv-solaris.c \
    1361         r0drv/generic/RTMpPokeCpu-r0drv-generic.cpp
     1361        r0drv/solaris/RTMpPokeCpu-r0drv-solaris.c
    13621362#       r0drv/solaris/mpnotification-r0drv-solaris.c
    13631363 endif
  • trunk/src/VBox/Runtime/r0drv/solaris/vbi/i86pc/os/vbi.c

    r19338 r19496  
    111111 */
    112112static struct modlmisc vbi_modlmisc = {
    113         &mod_miscops, "VirtualBox Interfaces V3"
     113        &mod_miscops, "VirtualBox Interfaces V4"
    114114};
    115115
     
    10541054}
    10551055
    1056 /*
    1057  * This is revision 3 of the interface. As more functions are added,
     1056int
     1057vbi_is_preempt_enabled(void)
     1058{
     1059        return (curthread->t_preempt == 0);
     1060}
     1061
     1062/*
     1063 * This is revision 4 of the interface. As more functions are added,
    10581064 * they should go after this point in the file and the revision level
    10591065 * increased. Also change vbi_modlmisc at the top of the file.
    10601066 */
    1061 uint_t vbi_revision_level = 3;
    1062 
    1063 int
    1064 vbi_is_preempt_enabled(void)
    1065 {
    1066         return (curthread->t_preempt == 0);
    1067 }
     1067uint_t vbi_revision_level = 4;
     1068
     1069void
     1070vbi_poke_cpu(int c)
     1071{
     1072        if (c < ncpus)
     1073                poke_cpu(c);
     1074}
  • trunk/src/VBox/Runtime/r0drv/solaris/vbi/i86pc/sys/vbi.h

    r16720 r19496  
    301301/* end of interfaces defined for version 3 */
    302302
     303/* begin interfaces defined for version 4 */
     304
     305/*
     306 * poke the given cpu with an IPI
     307 */
     308extern void vbi_poke_cpu(int);
     309
     310/* end of interfaces defined for version 4 */
     311
    303312#ifdef  __cplusplus
    304313}
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