VirtualBox

Ignore:
Timestamp:
May 7, 2009 5:52:01 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
47030
Message:

Solaris optimized version of RTMpPokeCpu

Location:
trunk/src/VBox/Runtime/r0drv/solaris/vbi
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • 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.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette