VirtualBox

Changeset 7505 in vbox


Ignore:
Timestamp:
Mar 19, 2008 4:31:06 PM (17 years ago)
Author:
vboxsync
Message:

More assertions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HWACCMR0.cpp

    r7503 r7505  
    465465            {
    466466                int rc = RTR0MemObjAllocCont(&HWACCMR0Globals.aCpuInfo[i].pMemObj, 1 << PAGE_SHIFT, true /* executable R0 mapping */);
     467                AssertRC(rc);
    467468                if (RT_FAILURE(rc))
    468469                    return rc;
    469470
    470471                void *pvR0 = RTR0MemObjAddress(HWACCMR0Globals.aCpuInfo[i].pMemObj);
     472                Assert(pvR0);
    471473                memset(pvR0, 0, PAGE_SIZE);
    472474
     
    525527    {
    526528        paRc[idCpu] = VMXR0EnableCpu(idCpu, pVM, pvPageCpu, pPageCpuPhys);
     529        AssertRC(paRc[idCpu]);
    527530        if (VBOX_SUCCESS(paRc[idCpu]))
    528531            HWACCMR0Globals.aCpuInfo[idCpu].fVMXConfigured = true;
     
    532535    {
    533536        paRc[idCpu] = SVMR0EnableCpu(idCpu, pVM, pvPageCpu, pPageCpuPhys);
     537        AssertRC(paRc[idCpu]);
    534538        if (VBOX_SUCCESS(paRc[idCpu]))
    535539            HWACCMR0Globals.aCpuInfo[idCpu].fSVMConfigured = true;
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