VirtualBox

Changeset 19470 in vbox for trunk/src/VBox/VMM/IOMInternal.h


Ignore:
Timestamp:
May 7, 2009 9:06:57 AM (16 years ago)
Author:
vboxsync
Message:

Added IOM lock

File:
1 edited

Legend:

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

    r17332 r19470  
    2828#include <VBox/stam.h>
    2929#include <VBox/pgm.h>
     30#include <VBox/pdmcritsect.h>
    3031#include <VBox/param.h>
    3132#include <iprt/avl.h>
     
    327328#endif
    328329
     330    /** Lock serializing EMT access to IOM. */
     331    PDMCRITSECT                     EmtLock;
     332
    329333    /** @name Caching of I/O Port and MMIO ranges and statistics.
    330334     * (Saves quite some time in rep outs/ins instruction emulation.)
     
    522526#endif
    523527
     528/* IOM locking helpers. */
     529int     iomLock(PVM pVM);
     530int     iomTryLock(PVM pVM);
     531void    iomUnlock(PVM pVM);
     532
    524533/* Disassembly helpers used in IOMAll.cpp & IOMAllMMIO.cpp */
    525 bool iomGetRegImmData(PDISCPUSTATE pCpu, PCOP_PARAMETER pParam, PCPUMCTXCORE pRegFrame, uint64_t *pu64Data, unsigned *pcbSize);
    526 bool iomSaveDataToReg(PDISCPUSTATE pCpu, PCOP_PARAMETER pParam, PCPUMCTXCORE pRegFrame, uint64_t u32Data);
     534bool    iomGetRegImmData(PDISCPUSTATE pCpu, PCOP_PARAMETER pParam, PCPUMCTXCORE pRegFrame, uint64_t *pu64Data, unsigned *pcbSize);
     535bool    iomSaveDataToReg(PDISCPUSTATE pCpu, PCOP_PARAMETER pParam, PCPUMCTXCORE pRegFrame, uint64_t u32Data);
    527536
    528537__END_DECLS
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