Changeset 25183 in vbox for trunk/src/VBox/Runtime/r0drv
- Timestamp:
- Dec 4, 2009 11:03:05 AM (15 years ago)
- 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 211 211 { 212 212 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; 215 215 if (fInterruptible) 216 rc = cv_timedwait_sig(&pEventInt->Cnd, &pEventInt->Mtx, timeout);216 rc = cv_timedwait_sig(&pEventInt->Cnd, &pEventInt->Mtx, cTimeout); 217 217 else 218 rc = cv_timedwait(&pEventInt->Cnd, &pEventInt->Mtx, timeout);218 rc = cv_timedwait(&pEventInt->Cnd, &pEventInt->Mtx, cTimeout); 219 219 } 220 220 else -
trunk/src/VBox/Runtime/r0drv/solaris/semeventmulti-r0drv-solaris.c
r22991 r25183 237 237 { 238 238 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; 241 241 if (fInterruptible) 242 rc = cv_timedwait_sig(&pThis->Cnd, &pThis->Mtx, timeout);242 rc = cv_timedwait_sig(&pThis->Cnd, &pThis->Mtx, cTimeout); 243 243 else 244 rc = cv_timedwait(&pThis->Cnd, &pThis->Mtx, timeout);244 rc = cv_timedwait(&pThis->Cnd, &pThis->Mtx, cTimeout); 245 245 } 246 246 else -
trunk/src/VBox/Runtime/r0drv/solaris/vbi/alloc-r0drv-solaris.c
r24386 r25183 71 71 } 72 72 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); 74 74 return pHdr; 75 75 } -
trunk/src/VBox/Runtime/r0drv/solaris/vbi/i86pc/os/vbi.c
r24425 r25183 111 111 * module linkage stuff 112 112 */ 113 #if 0 113 114 static struct modlmisc vbi_modlmisc = { 114 115 &mod_miscops, "VirtualBox Interfaces V6" … … 116 117 117 118 static struct modlinkage vbi_modlinkage = { 118 MODREV_1, (void *)&vbi_modlmisc, NULL119 MODREV_1, { (void *)&vbi_modlmisc, NULL } 119 120 }; 121 #endif 120 122 121 123 extern uintptr_t kernelbase; … … 201 203 vbi_init(void) 202 204 { 203 int err;204 205 205 /* 206 206 * Check to see if this version of virtualbox interface module will work … … 988 988 989 989 static int 990 vbi_watcher(cpu_setup_t state, int cpu, void *arg)990 vbi_watcher(cpu_setup_t state, int icpu, void *arg) 991 991 { 992 992 vbi_cpu_watch_t *w = arg; … … 999 999 else 1000 1000 return (0); 1001 w->vbi_cpu_func(w->vbi_cpu_arg, cpu, online);1001 w->vbi_cpu_func(w->vbi_cpu_arg, icpu, online); 1002 1002 return (0); 1003 1003 } … … 1122 1122 */ 1123 1123 static void 1124 vbi_gtimer_online(void *arg, cpu_t * cpu, cyc_handler_t *h, cyc_time_t *ct)1124 vbi_gtimer_online(void *arg, cpu_t *pcpu, cyc_handler_t *h, cyc_time_t *ct) 1125 1125 { 1126 1126 vbi_gtimer_t *t = arg; 1127 1127 hrtime_t now; 1128 1128 1129 t->g_counters[ cpu->cpu_id] = 0;1129 t->g_counters[pcpu->cpu_id] = 0; 1130 1130 h->cyh_func = vbi_gtimer_func; 1131 1131 h->cyh_arg = t; -
trunk/src/VBox/Runtime/r0drv/solaris/vbi/i86pc/sys/vbi.h
r24425 r25183 230 230 * 231 231 * 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); 233 233 * - arg is passed through from vbi_watch_cpus() 234 234 * - cpu is the CPU id involved … … 277 277 typedef struct vbi_stimer vbi_stimer_t; 278 278 extern 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); 280 280 extern void vbi_stimer_end(vbi_stimer_t *); 281 281 #pragma weak vbi_stimer_begin -
trunk/src/VBox/Runtime/r0drv/solaris/vbi/mp-r0drv-solaris.c
r24386 r25183 228 228 RTDECL(int) RTMpOnOthers(PFNRTMPWORKER pfnWorker, void *pvUser1, void *pvUser2) 229 229 { 230 int rc;231 230 RTMPARGS Args; 232 231 RT_ASSERT_INTS_ON(); … … 275 274 RTDECL(int) RTMpOnSpecific(RTCPUID idCpu, PFNRTMPWORKER pfnWorker, void *pvUser1, void *pvUser2) 276 275 { 277 int rc;278 276 RTMPARGS Args; 279 277 RT_ASSERT_INTS_ON(); -
trunk/src/VBox/Runtime/r0drv/solaris/vbi/thread-r0drv-solaris.c
r24386 r25183 53 53 { 54 54 clock_t cTicks; 55 unsigned long timeout;56 55 RT_ASSERT_PREEMPTIBLE(); 57 56 -
trunk/src/VBox/Runtime/r0drv/solaris/vbi/timer-r0drv-solaris.c
r24386 r25183 197 197 else 198 198 { 199 int cpu = VBI_ANY_CPU;199 int iCpu = VBI_ANY_CPU; 200 200 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); 203 203 if (pTimer->stimer == NULL) 204 204 { 205 if ( cpu != VBI_ANY_CPU)205 if (iCpu != VBI_ANY_CPU) 206 206 return VERR_CPU_OFFLINE; 207 207 return VERR_INVALID_PARAMETER;
Note:
See TracChangeset
for help on using the changeset viewer.