VirtualBox

Changeset 12700 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Sep 24, 2008 4:05:00 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
37007
Message:

Conditional 2nd mmio region for VMMDev.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VMMDev/VBoxDev.cpp

    r12693 r12700  
    16061606    int rc;
    16071607
     1608#ifdef VBOX_WITH_VMMDEV_HEAP
    16081609    AssertReturn(iRegion <= 2 && enmType == PCI_ADDRESS_SPACE_MEM, VERR_INTERNAL_ERROR);
     1610#else
     1611    AssertReturn(iRegion <= 1 && enmType == PCI_ADDRESS_SPACE_MEM, VERR_INTERNAL_ERROR);
     1612#endif
    16091613    Assert(pThis->pVMMDevRAMR3 != NULL);
    16101614    Assert(pThis->pVMMDevHeapR3 != NULL);
     
    16301634        }
    16311635    }
     1636#ifdef VBOX_WITH_VMMDEV_HEAP
    16321637    else
    16331638    if (iRegion == 2)
     
    16541659        }
    16551660    }
     1661#endif
    16561662
    16571663    return rc;
     
    22922298    if (RT_FAILURE(rc))
    22932299        return rc;
     2300#ifdef VBOX_WITH_VMMDEV_HEAP
    22942301    rc = PDMDevHlpPCIIORegionRegister(pDevIns, 2, VMMDEV_HEAP_SIZE, PCI_ADDRESS_SPACE_MEM, vmmdevIORAMRegionMap);
    22952302    if (RT_FAILURE(rc))
    22962303        return rc;
     2304#endif
    22972305
    22982306    /*
Note: See TracChangeset for help on using the changeset viewer.

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