VirtualBox

Changeset 12694 in vbox


Ignore:
Timestamp:
Sep 24, 2008 3:22:20 PM (16 years ago)
Author:
vboxsync
Message:

Don't overwrite the relevant mmio range with any others found!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxGuest/Helper.cpp

    r8155 r12694  
    4646    dprintf(("found %d resources\n", pResList->List->PartialResourceList.Count));
    4747    ULONG rangeCount = 0;
     48    ULONG cMMIORange = 0;
    4849    PBASE_ADDRESS baseAddress = pDevExt->baseAddress;
    4950    for (ULONG i = 0; i < pResList->List->PartialResourceList.Count; i++)
     
    108109                    // we only care about read/write memory
    109110                    /** @todo reconsider memory type */
    110                     if ((partialData->Flags & VBOX_CM_PRE_VISTA_MASK) == CM_RESOURCE_MEMORY_READ_WRITE)
     111                    if (    cMMIORange == 0 /* only care about the first mmio range (!!!) */
     112                        && (partialData->Flags & VBOX_CM_PRE_VISTA_MASK) == CM_RESOURCE_MEMORY_READ_WRITE)
    111113                    {
    112114                        pDevExt->memoryAddress = partialData->u.Memory.Start;
     
    118120                        baseAddress->ResourceMapped = FALSE;
    119121                        // next item
    120                         rangeCount++; baseAddress++;
     122                        rangeCount++; baseAddress++;cMMIORange++;
    121123                    } else
    122124                    {
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