Changeset 25003 in vbox for trunk/src/VBox/HostDrivers/Support
- Timestamp:
- Nov 26, 2009 2:27:19 PM (15 years ago)
- Location:
- trunk/src/VBox/HostDrivers/Support/testcase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/testcase/tstInt.cpp
r22077 r25003 175 175 uint64_t OneStartTick = ASMReadTSC(); 176 176 rc = SUPR3CallVMMR0Ex(pVMR0, NIL_VMCPUID, VMMR0_DO_SLOW_NOP, 0, NULL); 177 uint64_t Ticks = ASMReadTSC() - OneStartTick;178 if ( Ticks < MinTicks)179 MinTicks = Ticks;177 uint64_t OneTicks = ASMReadTSC() - OneStartTick; 178 if (OneTicks < MinTicks) 179 MinTicks = OneTicks; 180 180 181 181 if (RT_UNLIKELY(rc != VINF_SUCCESS)) -
trunk/src/VBox/HostDrivers/Support/testcase/tstPin.cpp
r22077 r25003 60 60 */ 61 61 void *pv; 62 intrc = SUPR3PageAlloc(1, &pv);62 rc = SUPR3PageAlloc(1, &pv); 63 63 AssertRC(rc); 64 64 RTPrintf("pv=%p\n", pv); … … 176 176 if (pv) 177 177 { 178 static SUPPAGE 178 static SUPPAGE s_aPages[BIG_SIZE >> PAGE_SHIFT]; 179 179 void *pvAligned = RT_ALIGN_P(pv, PAGE_SIZE); 180 rc = supR3PageLock(pvAligned, BIG_SIZE >> PAGE_SHIFT, & aPages[0]);180 rc = supR3PageLock(pvAligned, BIG_SIZE >> PAGE_SHIFT, &s_aPages[0]); 181 181 if (!rc) 182 182 { … … 186 186 #if 0 187 187 for (unsigned j = 0; j < (BIG_SIZE >> PAGE_SHIFT); j++) 188 RTPrintf("%2d: vrt=%p phys=%08x\n", j, (char *)pvAligned + (j << PAGE_SHIFT), (uintptr_t) aPages[j].pvPhys);188 RTPrintf("%2d: vrt=%p phys=%08x\n", j, (char *)pvAligned + (j << PAGE_SHIFT), (uintptr_t)s_aPages[j].pvPhys); 189 189 #endif 190 190
Note:
See TracChangeset
for help on using the changeset viewer.