Changeset 55895 in vbox for trunk/include/VBox/vmm
- Timestamp:
- May 17, 2015 7:42:38 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pgm.h
r55891 r55895 178 178 * 179 179 * @returns VBox status code (appropriate for GC return). 180 * @param pVM VM Handle. 181 * @param uErrorCode CPU Error code. 182 * @param pRegFrame Trap register frame. 183 * @param pvFault The fault address (cr2). 184 * @param pvRange The base address of the handled virtual range. 185 * @param offRange The offset of the access into this range. 186 * (If it's a EIP range this is the EIP, if not it's pvFault.) 180 * @param pVM VM Handle. 181 * @param uErrorCode CPU Error code (X86_TRAP_PF_XXX). 182 * @param pRegFrame Trap register frame. 183 * @param pvFault The fault address (cr2). 184 * @param pvRange The base address of the handled virtual range. 185 * @param offRange The offset of the access into this range. 186 * (If it's a EIP range this is the EIP, if not it's pvFault.) 187 * @param pvUser User argument. 187 188 * @todo Add pVCpu, possibly replacing pVM. 188 189 */ 189 typedef DECLCALLBACK(int) FNPGMRCVIRTHANDLER(PVM pVM, RTGCUINT uErrorCode, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, RTGCPTR pvRange, uintptr_t offRange); 190 typedef DECLCALLBACK(int) FNPGMRCVIRTPFHANDLER(PVM pVM, RTGCUINT uErrorCode, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, 191 RTGCPTR pvRange, uintptr_t offRange, void *pvUser); 190 192 /** Pointer to PGM access callback. */ 191 typedef FNPGMRCVIRT HANDLER *PFNPGMRCVIRTHANDLER;193 typedef FNPGMRCVIRTPFHANDLER *PFNPGMRCVIRTPFHANDLER; 192 194 193 195 /** … … 208 210 * @todo Add pVCpu, possibly replacing pVM. 209 211 */ 210 typedef DECLCALLBACK(int) FNPGMR3VIRTHANDLER(PVM pVM, RTGCPTR GCPtr, void *pvPtr, void *pvBuf, size_t cbBuf, PGMACCESSTYPE enmAccessType, void *pvUser); 212 typedef DECLCALLBACK(int) FNPGMR3VIRTHANDLER(PVM pVM, RTGCPTR GCPtr, void *pvPtr, void *pvBuf, size_t cbBuf, 213 PGMACCESSTYPE enmAccessType, void *pvUser); 211 214 /** Pointer to PGM access callback. */ 212 215 typedef FNPGMR3VIRTHANDLER *PFNPGMR3VIRTHANDLER; … … 218 221 * @param pVM VM Handle. 219 222 * @param GCPtr The virtual address the guest has changed. 220 */ 221 typedef DECLCALLBACK(int) FNPGMR3VIRTINVALIDATE(PVM pVM, RTGCPTR GCPtr); 223 * @param pvUser User argument. 224 */ 225 typedef DECLCALLBACK(int) FNPGMR3VIRTINVALIDATE(PVM pVM, RTGCPTR GCPtr, void *pvUser); 222 226 /** Pointer to PGM invalidation callback. */ 223 227 typedef FNPGMR3VIRTINVALIDATE *PFNPGMR3VIRTINVALIDATE; … … 546 550 PFNPGMR3VIRTINVALIDATE pfnInvalidateR3, 547 551 PFNPGMR3VIRTHANDLER pfnHandlerR3, 548 RCPTRTYPE( PFNPGMRCVIRTHANDLER) pfnHandlerRC,552 RCPTRTYPE(FNPGMRCVIRTPFHANDLER) pfnPfHandlerRC, 549 553 const char *pszDesc, PPGMVIRTHANDLERTYPE phType); 550 554 VMMR3_INT_DECL(int) PGMR3HandlerVirtualTypeRegister(PVM pVM, PGMVIRTHANDLERKIND enmKind, bool fRelocUserRC, 551 555 PFNPGMR3VIRTINVALIDATE pfnInvalidateR3, 552 556 PFNPGMR3VIRTHANDLER pfnHandlerR3, 553 const char *psz HandlerRC, const char *pszModRC, const char *pszDesc,557 const char *pszPfHandlerRC, const char *pszModRC, const char *pszDesc, 554 558 PPGMVIRTHANDLERTYPE phType); 555 559 VMMR3_INT_DECL(int) PGMR3HandlerVirtualRegister(PVM pVM, PVMCPU pVCpu, PGMVIRTHANDLERTYPE hType, RTGCPTR GCPtr,
Note:
See TracChangeset
for help on using the changeset viewer.