VirtualBox

Changeset 9212 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
May 29, 2008 9:38:38 AM (17 years ago)
Author:
vboxsync
Message:

Major changes for sizeof(RTGCPTR) == uint64_t.
Introduced RCPTRTYPE for pointers valid in raw mode only (RTGCPTR32).

Disabled by default. Enable by adding VBOX_WITH_64_BITS_GUESTS to your LocalConfig.kmk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DevPCNet.cpp

    r8613 r9212  
    114114    R3R0PTRTYPE(PTMTIMER)               pTimerPollHC;
    115115    /** Poll timer (address for guest context) */
    116     GCPTRTYPE(PTMTIMER)                 pTimerPollGC;
     116    RCPTRTYPE(PTMTIMER)                 pTimerPollGC;
    117117#endif
    118118
     
    124124    R3R0PTRTYPE(PTMTIMER)               pTimerSoftIntHC;
    125125    /** Software Interrupt timer (address for guest context) */
    126     GCPTRTYPE(PTMTIMER)                 pTimerSoftIntGC;
     126    RCPTRTYPE(PTMTIMER)                 pTimerSoftIntGC;
    127127
    128128    /** Register Address Pointer */
     
    166166
    167167    /** Transmit signaller */
    168     GCPTRTYPE(PPDMQUEUE)                pXmitQueueGC;
     168    RCPTRTYPE(PPDMQUEUE)                pXmitQueueGC;
    169169    R3R0PTRTYPE(PPDMQUEUE)              pXmitQueueHC;
    170170
    171171    /** Receive signaller */
    172172    R3R0PTRTYPE(PPDMQUEUE)              pCanRxQueueHC;
    173     GCPTRTYPE(PPDMQUEUE)                pCanRxQueueGC;
     173    RCPTRTYPE(PPDMQUEUE)                pCanRxQueueGC;
    174174    /** Pointer to the device instance. */
    175     GCPTRTYPE(PPDMDEVINS)               pDevInsGC;
     175    RCPTRTYPE(PPDMDEVINS)               pDevInsGC;
    176176    /** Pointer to the device instance. */
    177177    R3R0PTRTYPE(PPDMDEVINS)             pDevInsHC;
     
    241241    R3R0PTRTYPE(PPCNETGUESTSHAREDMEMORY) pSharedMMIOHC;
    242242    /** The hypervisor/guest context of the shared memory used for the private interface. */
    243     GCPTRTYPE(PPCNETGUESTSHAREDMEMORY)  pSharedMMIOGC;
     243    RCPTRTYPE(PPCNETGUESTSHAREDMEMORY)  pSharedMMIOGC;
    244244
    245245#if HC_ARCH_BITS == 64
     
    47454745    if (fPrivIfEnabled)
    47464746    {
     4747        RTGCPTR pGCMapping;
     4748
    47474749        /*
    47484750         * Initialize shared memory between host and guest for descriptors and RX buffers. Most guests
     
    47534755            return PDMDevHlpVMSetError(pDevIns, rc, RT_SRC_POS,
    47544756                                       N_("Failed to allocate %u bytes of memory for the PCNet device"), PCNET_GUEST_SHARED_MEMORY_SIZE);
    4755         rc = PDMDevHlpMMHyperMapMMIO2(pDevIns, 2, 0, 8192, "PCNetShMem", &pData->pSharedMMIOGC);
     4757        rc = PDMDevHlpMMHyperMapMMIO2(pDevIns, 2, 0, 8192, "PCNetShMem", &pGCMapping);
    47564758        if (VBOX_FAILURE(rc))
    47574759            return PDMDevHlpVMSetError(pDevIns, rc, RT_SRC_POS,
    47584760                                       N_("Failed to map 8192 bytes of memory for the PCNet device into the hyper memory"));
     4761        pData->pSharedMMIOGC = pGCMapping;
    47594762        pcnetInitSharedMemory(pData);
    47604763        rc = PDMDevHlpPCIIORegionRegister(pDevIns, 2, PCNET_GUEST_SHARED_MEMORY_SIZE,
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