VirtualBox

Ignore:
Timestamp:
Feb 25, 2015 10:48:54 AM (10 years ago)
Author:
vboxsync
Message:

Runtime/r0drv/solaris: Fix Solaris 10 breakage due to incompatible offsets in critical structures.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/solaris/thread-r0drv-solaris.c

    r44528 r54479  
    9090    RTThreadPreemptDisable(&PreemptState);
    9191
    92     char cThreadPreempt = SOL_THREAD_PREEMPT;
    93     char cForcePreempt  = SOL_CPU_KPRUNRUN;
     92    char const bThreadPreempt = SOL_THREAD_PREEMPT;
     93    char const bForcePreempt  = SOL_CPU_KPRUNRUN;
    9494    bool fWillYield = false;
    95     Assert(cThreadPreempt >= 1);
     95    Assert(bThreadPreempt >= 1);
    9696
    9797    /*
     
    9999     * preemption is set on the CPU, only then we are guaranteed to be preempted.
    100100     */
    101     if (cThreadPreempt == 1 && cForcePreempt != 0)
     101    if (bThreadPreempt == 1 && bForcePreempt != 0)
    102102        fWillYield = true;
    103103
     
    136136    Assert(hThread == NIL_RTTHREAD);
    137137
    138     char cPreempt      = SOL_CPU_RUNRUN;
    139     char cForcePreempt = SOL_CPU_KPRUNRUN;
    140     return (cPreempt != 0 || cForcePreempt != 0);
     138    char const bPreempt      = SOL_CPU_RUNRUN;
     139    char const bForcePreempt = SOL_CPU_KPRUNRUN;
     140    return (bPreempt != 0 || bForcePreempt != 0);
    141141}
    142142
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