Changeset 61237 in vbox for trunk/src/VBox/HostDrivers/Support
- Timestamp:
- May 27, 2016 10:42:39 AM (9 years ago)
- Location:
- trunk/src/VBox/HostDrivers/Support/testcase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/testcase/tstContiguous.cpp
r57358 r61237 52 52 */ 53 53 RTHCPHYS HCPhys; 54 void *pv = SUPR3ContAlloc(8, N IL_RTR0PTR, &HCPhys);54 void *pv = SUPR3ContAlloc(8, NULL, &HCPhys); 55 55 rcRet += pv == NULL || HCPhys == 0; 56 56 if (pv && HCPhys) 57 57 { 58 58 memset(pv, 0xff, PAGE_SIZE * 8); 59 pv = SUPR3ContAlloc(5, N IL_RTR0PTR, &HCPhys);59 pv = SUPR3ContAlloc(5, NULL, &HCPhys); 60 60 rcRet += pv == NULL || HCPhys == 0; 61 61 if (pv && HCPhys) … … 70 70 for (unsigned i = 0; i < RT_ELEMENTS(apv); i++) 71 71 { 72 apv[i] = SUPR3ContAlloc(1 + (i % 11), N IL_RTR0PTR, &HCPhys);72 apv[i] = SUPR3ContAlloc(1 + (i % 11), NULL, &HCPhys); 73 73 if (!apv[i]) 74 74 { -
trunk/src/VBox/HostDrivers/Support/testcase/tstPin.cpp
r57358 r61237 137 137 * Allocate a bit of contiguous memory. 138 138 */ 139 pv = SUPR3ContAlloc(RT_ALIGN_Z(15003, PAGE_SIZE) >> PAGE_SHIFT, N IL_RTR0PTR, &HCPhys);139 pv = SUPR3ContAlloc(RT_ALIGN_Z(15003, PAGE_SIZE) >> PAGE_SHIFT, NULL, &HCPhys); 140 140 rcRet += pv == NULL || HCPhys == 0; 141 141 if (pv && HCPhys) … … 144 144 void *pv0 = pv; 145 145 memset(pv0, 0xaf, 15003); 146 pv = SUPR3ContAlloc(RT_ALIGN_Z(12999, PAGE_SIZE) >> PAGE_SHIFT, N IL_RTR0PTR, &HCPhys);146 pv = SUPR3ContAlloc(RT_ALIGN_Z(12999, PAGE_SIZE) >> PAGE_SHIFT, NULL, &HCPhys); 147 147 rcRet += pv == NULL || HCPhys == 0; 148 148 if (pv && HCPhys)
Note:
See TracChangeset
for help on using the changeset viewer.