Changeset 4818 in vbox for trunk/src/VBox/HostDrivers/Support/testcase
- Timestamp:
- Sep 15, 2007 10:04:05 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/testcase/tstPin.cpp
r4071 r4818 42 42 if (!rc) 43 43 { 44 /* 45 * Simple test. 46 */ 47 void *pv; 48 int rc = SUPPageAlloc(1, &pv); 49 AssertRC(rc); 50 RTPrintf("pv=%p\n", pv); 51 SUPPAGE aPages[1]; 52 rc = SUPPageLock(pv, 1, &aPages[0]); 53 RTPrintf("rc=%d aPages[0]=%RHp\n", rc, pv, aPages[0]); 54 RTThreadSleep(1500); 55 #if 0 56 RTPrintf("Unlocking...\n"); 57 RTThreadSleep(250); 58 rc = SUPPageUnlock(pv); 59 RTPrintf("rc=%d\n", rc); 60 RTThreadSleep(1500); 61 #endif 62 63 /* 64 * More extensive. 65 */ 44 66 static struct 45 67 { … … 169 191 SUPPageFree(pv, BIG_SIZEPP >> PAGE_SHIFT); 170 192 } 171 172 193 rc = SUPTerm(); 173 194 RTPrintf("SUPTerm -> rc=%d\n", rc);
Note:
See TracChangeset
for help on using the changeset viewer.