VirtualBox

Changeset 25183 in vbox for trunk/src/VBox/Runtime/r0drv


Ignore:
Timestamp:
Dec 4, 2009 11:03:05 AM (15 years ago)
Author:
vboxsync
Message:

r0drv/Solaris: fix warnings.

Location:
trunk/src/VBox/Runtime/r0drv/solaris
Files:
8 edited

Legend:

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

    r22991 r25183  
    211211        {
    212212            clock_t cTicks = drv_usectohz((clock_t)(cMillies * 1000L));
    213             clock_t timeout = ddi_get_lbolt();
    214             timeout += cTicks;
     213            clock_t cTimeout = ddi_get_lbolt();
     214            cTimeout += cTicks;
    215215            if (fInterruptible)
    216                 rc = cv_timedwait_sig(&pEventInt->Cnd, &pEventInt->Mtx, timeout);
     216                rc = cv_timedwait_sig(&pEventInt->Cnd, &pEventInt->Mtx, cTimeout);
    217217            else
    218                 rc = cv_timedwait(&pEventInt->Cnd, &pEventInt->Mtx, timeout);
     218                rc = cv_timedwait(&pEventInt->Cnd, &pEventInt->Mtx, cTimeout);
    219219        }
    220220        else
  • trunk/src/VBox/Runtime/r0drv/solaris/semeventmulti-r0drv-solaris.c

    r22991 r25183  
    237237        {
    238238            clock_t cTicks = drv_usectohz((clock_t)(cMillies * 1000L));
    239             clock_t timeout = ddi_get_lbolt();
    240             timeout += cTicks;
     239            clock_t cTimeout = ddi_get_lbolt();
     240            cTimeout += cTicks;
    241241            if (fInterruptible)
    242                 rc = cv_timedwait_sig(&pThis->Cnd, &pThis->Mtx, timeout);
     242                rc = cv_timedwait_sig(&pThis->Cnd, &pThis->Mtx, cTimeout);
    243243            else
    244                 rc = cv_timedwait(&pThis->Cnd, &pThis->Mtx, timeout);
     244                rc = cv_timedwait(&pThis->Cnd, &pThis->Mtx, cTimeout);
    245245        }
    246246        else
  • trunk/src/VBox/Runtime/r0drv/solaris/vbi/alloc-r0drv-solaris.c

    r24386 r25183  
    7171    }
    7272    else
    73         printf("rtMemAlloc(%#x, %#x) failed\n", cb + sizeof(*pHdr), fFlags);
     73        cmn_err(CE_NOTE, "rtMemAlloc(%ld, %x) failed\n", cb + sizeof(*pHdr), fFlags);
    7474    return pHdr;
    7575}
  • trunk/src/VBox/Runtime/r0drv/solaris/vbi/i86pc/os/vbi.c

    r24425 r25183  
    111111 * module linkage stuff
    112112 */
     113#if 0
    113114static struct modlmisc vbi_modlmisc = {
    114115        &mod_miscops, "VirtualBox Interfaces V6"
     
    116117
    117118static struct modlinkage vbi_modlinkage = {
    118         MODREV_1, (void *)&vbi_modlmisc, NULL
     119        MODREV_1, { (void *)&vbi_modlmisc, NULL }
    119120};
     121#endif
    120122
    121123extern uintptr_t kernelbase;
     
    201203vbi_init(void)
    202204{
    203         int err;
    204 
    205205        /*
    206206         * Check to see if this version of virtualbox interface module will work
     
    988988
    989989static int
    990 vbi_watcher(cpu_setup_t state, int cpu, void *arg)
     990vbi_watcher(cpu_setup_t state, int icpu, void *arg)
    991991{
    992992        vbi_cpu_watch_t *w = arg;
     
    999999        else
    10001000                return (0);
    1001         w->vbi_cpu_func(w->vbi_cpu_arg, cpu, online);
     1001        w->vbi_cpu_func(w->vbi_cpu_arg, icpu, online);
    10021002        return (0);
    10031003}
     
    11221122 */
    11231123static void
    1124 vbi_gtimer_online(void *arg, cpu_t *cpu, cyc_handler_t *h, cyc_time_t *ct)
     1124vbi_gtimer_online(void *arg, cpu_t *pcpu, cyc_handler_t *h, cyc_time_t *ct)
    11251125{
    11261126        vbi_gtimer_t *t = arg;
    11271127        hrtime_t now;
    11281128
    1129         t->g_counters[cpu->cpu_id] = 0;
     1129        t->g_counters[pcpu->cpu_id] = 0;
    11301130        h->cyh_func = vbi_gtimer_func;
    11311131        h->cyh_arg = t;
  • trunk/src/VBox/Runtime/r0drv/solaris/vbi/i86pc/sys/vbi.h

    r24425 r25183  
    230230 *
    231231 * The call back func is invoked with 3 arguments:
    232  *      void func(void *arg, int cpu, int online);
     232 *      void func(void *arg, int icpu, int online);
    233233 * - arg is passed through from vbi_watch_cpus()
    234234 * - cpu is the CPU id involved
     
    277277typedef struct vbi_stimer vbi_stimer_t;
    278278extern vbi_stimer_t *vbi_stimer_begin(void (*func)(void *, uint64_t), void *arg,
    279     uint64_t when, uint64_t interval, int cpu);
     279    uint64_t when, uint64_t interval, int icpu);
    280280extern void vbi_stimer_end(vbi_stimer_t *);
    281281#pragma weak vbi_stimer_begin
  • trunk/src/VBox/Runtime/r0drv/solaris/vbi/mp-r0drv-solaris.c

    r24386 r25183  
    228228RTDECL(int) RTMpOnOthers(PFNRTMPWORKER pfnWorker, void *pvUser1, void *pvUser2)
    229229{
    230     int rc;
    231230    RTMPARGS Args;
    232231    RT_ASSERT_INTS_ON();
     
    275274RTDECL(int) RTMpOnSpecific(RTCPUID idCpu, PFNRTMPWORKER pfnWorker, void *pvUser1, void *pvUser2)
    276275{
    277     int rc;
    278276    RTMPARGS Args;
    279277    RT_ASSERT_INTS_ON();
  • trunk/src/VBox/Runtime/r0drv/solaris/vbi/thread-r0drv-solaris.c

    r24386 r25183  
    5353{
    5454    clock_t cTicks;
    55     unsigned long timeout;
    5655    RT_ASSERT_PREEMPTIBLE();
    5756
  • trunk/src/VBox/Runtime/r0drv/solaris/vbi/timer-r0drv-solaris.c

    r24386 r25183  
    197197    else
    198198    {
    199         int cpu = VBI_ANY_CPU;
     199        int iCpu = VBI_ANY_CPU;
    200200        if (pTimer->fSpecificCpu)
    201             cpu = pTimer->iCpu;
    202         pTimer->stimer = vbi_stimer_begin(rtTimerSolarisCallbackWrapper, pTimer, u64First, pTimer->interval, cpu);
     201            iCpu = pTimer->iCpu;
     202        pTimer->stimer = vbi_stimer_begin(rtTimerSolarisCallbackWrapper, pTimer, u64First, pTimer->interval, iCpu);
    203203        if (pTimer->stimer == NULL)
    204204        {
    205             if (cpu != VBI_ANY_CPU)
     205            if (iCpu != VBI_ANY_CPU)
    206206                return VERR_CPU_OFFLINE;
    207207            return VERR_INVALID_PARAMETER;
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