VirtualBox

Ignore:
Timestamp:
May 27, 2016 10:42:39 AM (9 years ago)
Author:
vboxsync
Message:

tstPin / tstContinuous: fix

Location:
trunk/src/VBox/HostDrivers/Support/testcase
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/testcase/tstContiguous.cpp

    r57358 r61237  
    5252         */
    5353        RTHCPHYS HCPhys;
    54         void *pv = SUPR3ContAlloc(8, NIL_RTR0PTR, &HCPhys);
     54        void *pv = SUPR3ContAlloc(8, NULL, &HCPhys);
    5555        rcRet += pv == NULL || HCPhys == 0;
    5656        if (pv && HCPhys)
    5757        {
    5858            memset(pv, 0xff, PAGE_SIZE * 8);
    59             pv = SUPR3ContAlloc(5, NIL_RTR0PTR, &HCPhys);
     59            pv = SUPR3ContAlloc(5, NULL, &HCPhys);
    6060            rcRet += pv == NULL || HCPhys == 0;
    6161            if (pv && HCPhys)
     
    7070                for (unsigned i = 0; i < RT_ELEMENTS(apv); i++)
    7171                {
    72                     apv[i] = SUPR3ContAlloc(1 + (i % 11), NIL_RTR0PTR, &HCPhys);
     72                    apv[i] = SUPR3ContAlloc(1 + (i % 11), NULL, &HCPhys);
    7373                    if (!apv[i])
    7474                    {
  • trunk/src/VBox/HostDrivers/Support/testcase/tstPin.cpp

    r57358 r61237  
    137137         * Allocate a bit of contiguous memory.
    138138         */
    139         pv = SUPR3ContAlloc(RT_ALIGN_Z(15003, PAGE_SIZE) >> PAGE_SHIFT, NIL_RTR0PTR, &HCPhys);
     139        pv = SUPR3ContAlloc(RT_ALIGN_Z(15003, PAGE_SIZE) >> PAGE_SHIFT, NULL, &HCPhys);
    140140        rcRet += pv == NULL || HCPhys == 0;
    141141        if (pv && HCPhys)
     
    144144            void *pv0 = pv;
    145145            memset(pv0, 0xaf, 15003);
    146             pv = SUPR3ContAlloc(RT_ALIGN_Z(12999, PAGE_SIZE) >> PAGE_SHIFT, NIL_RTR0PTR, &HCPhys);
     146            pv = SUPR3ContAlloc(RT_ALIGN_Z(12999, PAGE_SIZE) >> PAGE_SHIFT, NULL, &HCPhys);
    147147            rcRet += pv == NULL || HCPhys == 0;
    148148            if (pv && HCPhys)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette