VirtualBox

Changeset 4767 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 13, 2007 11:30:25 AM (17 years ago)
Author:
vboxsync
Message:

Stricter types

Location:
trunk/src/VBox/VMM
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/EMInternal.h

    r4071 r4767  
    260260
    261261    /** Pointer to the PATM status structure. (HC Ptr) */
    262     HCPTRTYPE(PPATMGCSTATE) pPatmGCState;
     262    R3R0PTRTYPE(PPATMGCSTATE) pPatmGCState;
    263263
    264264    /** Pointer to the guest CPUM state. (HC Ptr) */
    265     HCPTRTYPE(PCPUMCTX)     pCtx;
     265    R3R0PTRTYPE(PCPUMCTX)     pCtx;
    266266
    267267
     
    311311
    312312    /** More statistics (HC). */
    313     HCPTRTYPE(PEMSTATS)     pStatsHC;
     313    R3R0PTRTYPE(PEMSTATS)   pStatsHC;
    314314    /** More statistics (GC). */
    315315    GCPTRTYPE(PEMSTATS)     pStatsGC;
     
    319319
    320320    /** Tree for keeping track of cli occurances (debug only). */
    321     HCPTRTYPE(PAVLPVNODECORE) pCliStatTree;
     321    R3PTRTYPE(PAVLPVNODECORE) pCliStatTree;
    322322    STAMCOUNTER             StatTotalClis;
    323323#if 0
  • trunk/src/VBox/VMM/MMInternal.h

    r4755 r4767  
    572572        {
    573573            /** Host context pointer. */
    574             HCPTRTYPE(void *)       pvHC;
     574            R3PTRTYPE(void *)       pvHC;
    575575            /** Host context ring-0 pointer. */
    576576            RTR0PTR                 pvR0;
    577577            /** Pointer to the locked mem record. */
    578             HCPTRTYPE(PMMLOCKEDMEM) pLockedMem;
     578            R3PTRTYPE(PMMLOCKEDMEM) pLockedMem;
    579579        } Locked;
    580580
     
    583583        {
    584584            /** Host context pointer. */
    585             HCPTRTYPE(void *)       pvHC;
     585            R3PTRTYPE(void *)       pvHC;
    586586            /** HC physical address corresponding to pvHC. */
    587587            RTHCPHYS                HCPhys;
     
    642642    GCPTRTYPE(PMMHYPERHEAP)     pHyperHeapGC;
    643643    /** The hypervisor heap (HC Ptr). */
    644     HCPTRTYPE(PMMHYPERHEAP)     pHyperHeapHC;
     644    R3R0PTRTYPE(PMMHYPERHEAP)   pHyperHeapHC;
    645645
    646646    /** List of memory locks. (HC only) */
    647     HCPTRTYPE(PMMLOCKEDMEM)     pLockedMem;
     647    R3PTRTYPE(PMMLOCKEDMEM)     pLockedMem;
    648648
    649649    /** Page pool. (HC only) */
     
    656656     * to make sure any bugs will not harm whatever the system stores in the first
    657657     * physical page. */
    658     HCPTRTYPE(void *)           pvDummyPage;
     658    R3PTRTYPE(void *)           pvDummyPage;
    659659    /** Physical address of the dummy page. */
    660660    RTHCPHYS                    HCPhysDummyPage;
     
    666666    RTUINT                      cbRamBase;
    667667    /** Pointer to the base RAM. */
    668     HCPTRTYPE(void *)           pvRamBaseHC;
     668    R3PTRTYPE(void *)           pvRamBaseHC;
    669669    /** The head of the ROM ranges. */
    670670    R3PTRTYPE(PMMROMRANGE)      pRomHead;
    671671
    672672    /** Pointer to the MM R3 Heap. */
    673     HCPTRTYPE(PMMHEAP)          pHeap;
     673    R3PTRTYPE(PMMHEAP)          pHeap;
    674674
    675675} MM;
  • trunk/src/VBox/VMM/PDMInternal.h

    r4696 r4767  
    759759
    760760    /** Pointer to list of loaded modules. This is HC only! */
    761     HCPTRTYPE(PPDMMOD)              pModules;
     761    R3PTRTYPE(PPDMMOD)              pModules;
    762762
    763763    /** List of registered devices. (FIFO) */
    764     HCPTRTYPE(PPDMDEV)              pDevs;
     764    R3PTRTYPE(PPDMDEV)              pDevs;
    765765    /** List of devices instances. (FIFO) */
    766     HCPTRTYPE(PPDMDEVINS)           pDevInstances;
     766    R3PTRTYPE(PPDMDEVINS)           pDevInstances;
    767767    /** List of registered USB devices. (FIFO) */
    768768    R3PTRTYPE(PPDMUSB)              pUsbDevs;
     
    770770    R3PTRTYPE(PPDMUSBINS)           pUsbInstances;
    771771    /** List of registered drivers. (FIFO) */
    772     HCPTRTYPE(PPDMDRV)              pDrvs;
     772    R3PTRTYPE(PPDMDRV)              pDrvs;
    773773    /** List of initialized critical sections. (LIFO) */
    774     HCPTRTYPE(PPDMCRITSECTINT)      pCritSects;
     774    R3PTRTYPE(PPDMCRITSECTINT)      pCritSects;
    775775    /** PCI Buses. */
    776776    PDMPCIBUS                       aPciBuses[1];
     
    782782    PDMIOAPIC                       IoApic;
    783783    /** The registered DMAC device. */
    784     HCPTRTYPE(PPDMDMAC)             pDmac;
     784    R3PTRTYPE(PPDMDMAC)             pDmac;
    785785    /** The registered RTC device. */
    786     HCPTRTYPE(PPDMRTC)              pRtc;
     786    R3PTRTYPE(PPDMRTC)              pRtc;
    787787    /** The registered USB HUBs. (FIFO) */
    788788    R3PTRTYPE(PPDMUSBHUB)           pUsbHubs;
     
    800800
    801801    /** Linked list of timer driven PDM queues. */
    802     HCPTRTYPE(struct PDMQUEUE *)    pQueuesTimer;
     802    R3PTRTYPE(struct PDMQUEUE *)    pQueuesTimer;
    803803    /** Linked list of force action driven PDM queues. */
    804     HCPTRTYPE(struct PDMQUEUE *)    pQueuesForced;
     804    R3PTRTYPE(struct PDMQUEUE *)    pQueuesForced;
    805805    /** Pointer to the queue which should be manually flushed - HCPtr.
    806806     * Only touched by EMT. */
     
    825825#endif
    826826    R3PTRTYPE(PFNPDMDRVPOLLER)      apfnPollers[16];
    827     HCPTRTYPE(PPDMDRVINS)           aDrvInsPollers[16];
     827    R3PTRTYPE(PPDMDRVINS)           aDrvInsPollers[16];
    828828    PTMTIMERHC                      pTimerPollers;
    829829    /** @} */
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