VirtualBox

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


Ignore:
Timestamp:
Aug 26, 2009 10:22:16 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
51513
Message:

VMM,DevPCI,VBox/types.h: Added a VBOXSTRICTRC type for indicating strict VBox stuatus codes. Some expirmentation with making it a class in strict builds to get some help from the compiler with making sure the return code is treated correctly.

File:
1 edited

Legend:

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

    r20722 r22493  
    430430#endif /* IN_RING3 */
    431431
    432 /**
    433  * \#PF Handler callback for MMIO ranges.
    434  *
    435  * @returns VBox status code (appropriate for GC return).
    436  *
    437  * @param   pVM         VM Handle.
    438  * @param   uErrorCode  CPU Error code.
    439  * @param   pRegFrame   Trap register frame.
    440  * @param   pvFault     The fault address (cr2).
    441  * @param   GCPhysFault The GC physical address corresponding to pvFault.
    442  * @param   pvUser      Pointer to the MMIO range entry.
    443  */
    444 VMMDECL(int) IOMMMIOHandler(PVM pVM, RTGCUINT uErrorCode, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, RTGCPHYS GCPhysFault, void *pvUser);
    445 
     432VMMDECL(int)        IOMMMIOHandler(PVM pVM, RTGCUINT uErrorCode, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, RTGCPHYS GCPhysFault, void *pvUser);
    446433#ifdef IN_RING3
    447 /**
    448  * \#PF Handler callback for MMIO ranges.
    449  *
    450  * @returns VINF_SUCCESS if the handler have carried out the operation.
    451  * @returns VINF_PGM_HANDLER_DO_DEFAULT if the caller should carry out the access operation.
    452  * @param   pVM             VM Handle.
    453  * @param   GCPhys          The physical address the guest is writing to.
    454  * @param   pvPhys          The HC mapping of that address.
    455  * @param   pvBuf           What the guest is reading/writing.
    456  * @param   cbBuf           How much it's reading/writing.
    457  * @param   enmAccessType   The access type.
    458  * @param   pvUser      Pointer to the MMIO range entry.
    459  */
    460 DECLCALLBACK(int) IOMR3MMIOHandler(PVM pVM, RTGCPHYS GCPhys, void *pvPhys, void *pvBuf, size_t cbBuf, PGMACCESSTYPE enmAccessType, void *pvUser);
     434DECLCALLBACK(int)   IOMR3MMIOHandler(PVM pVM, RTGCPHYS GCPhys, void *pvPhys, void *pvBuf, size_t cbBuf, PGMACCESSTYPE enmAccessType, void *pvUser);
    461435#endif
    462436
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