Changeset 108657 in vbox for trunk/src/VBox/HostDrivers/Support/testcase/tstContiguous.cpp
- Timestamp:
- Mar 20, 2025 3:29:22 PM (4 weeks ago)
- svn:sync-xref-src-repo-rev:
- 168070
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/testcase/tstContiguous.cpp
r106061 r108657 43 43 #include <iprt/initterm.h> 44 44 #include <iprt/stream.h> 45 #include <iprt/system.h> 45 46 #include <stdlib.h> 46 47 #include <string.h> … … 58 59 if (!rc) 59 60 { 61 uint32_t const cbPage = RTSystemGetPageSize(); 62 60 63 /* 61 64 * Allocate a bit of contiguous memory. … … 66 69 if (pv && HCPhys) 67 70 { 68 memset(pv, 0xff, PAGE_SIZE* 8);71 memset(pv, 0xff, cbPage * 8); 69 72 pv = SUPR3ContAlloc(5, NULL, &HCPhys); 70 73 rcRet += pv == NULL || HCPhys == 0; 71 74 if (pv && HCPhys) 72 75 { 73 memset(pv, 0x7f, PAGE_SIZE* 5);76 memset(pv, 0x7f, cbPage * 5); 74 77 rc = SUPR3ContFree(pv, 5); 75 78 rcRet += rc != 0;
Note:
See TracChangeset
for help on using the changeset viewer.