Changeset 9220 in vbox for trunk/include
- Timestamp:
- May 29, 2008 12:34:27 PM (17 years ago)
- Location:
- trunk/include/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/csam.h
r8217 r9220 73 73 * @param GCPtr GC pointer of page table entry 74 74 */ 75 CSAMDECL(bool) CSAMDoesPageNeedScanning(PVM pVM, RTGCPTR GCPtr);75 CSAMDECL(bool) CSAMDoesPageNeedScanning(PVM pVM, RTGCPTR32 GCPtr); 76 76 77 77 /** … … 82 82 * @param pPage GC page address 83 83 */ 84 CSAMDECL(bool) CSAMIsPageScanned(PVM pVM, RTGCPTR pPage);84 CSAMDECL(bool) CSAMIsPageScanned(PVM pVM, RTGCPTR32 pPage); 85 85 86 86 /** … … 95 95 * 96 96 */ 97 CSAMDECL(int) CSAMMarkPage(PVM pVM, RTGCPTR pPage, bool fScanned);97 CSAMDECL(int) CSAMMarkPage(PVM pVM, RTGCPTR32 pPage, bool fScanned); 98 98 99 99 … … 105 105 * @param GCPtr GC pointer of page 106 106 */ 107 CSAMDECL(void) CSAMMarkPossibleCodePage(PVM pVM, RTGCPTR GCPtr);107 CSAMDECL(void) CSAMMarkPossibleCodePage(PVM pVM, RTGCPTR32 GCPtr); 108 108 109 109 /** … … 139 139 * @param pvFault Fault address 140 140 */ 141 CSAMDECL(int) CSAMExecFault(PVM pVM, RTGCPTR pvFault);141 CSAMDECL(int) CSAMExecFault(PVM pVM, RTGCPTR32 pvFault); 142 142 143 143 /** … … 149 149 * @param GCPtr GC pointer of page table entry 150 150 */ 151 CSAMDECL(bool) CSAMIsKnownDangerousInstr(PVM pVM, RTGCPTR GCPtr);151 CSAMDECL(bool) CSAMIsKnownDangerousInstr(PVM pVM, RTGCPTR32 GCPtr); 152 152 153 153 … … 213 213 * @param addr GC address of the page to flush 214 214 */ 215 CSAMR3DECL(int) CSAMR3FlushPage(PVM pVM, RTGCPTR addr);215 CSAMR3DECL(int) CSAMR3FlushPage(PVM pVM, RTGCPTR32 addr); 216 216 217 217 /** … … 222 222 * @param addr GC address of the page to flush 223 223 */ 224 CSAMR3DECL(int) CSAMR3RemovePage(PVM pVM, RTGCPTR addr);224 CSAMR3DECL(int) CSAMR3RemovePage(PVM pVM, RTGCPTR32 addr); 225 225 226 226 /** … … 233 233 * @param pInstrGC Instruction pointer 234 234 */ 235 CSAMR3DECL(int) CSAMR3CheckCodeEx(PVM pVM, RTSEL Sel, PCPUMSELREGHID pHiddenSel, RTGCPTR pInstrGC);235 CSAMR3DECL(int) CSAMR3CheckCodeEx(PVM pVM, RTSEL Sel, PCPUMSELREGHID pHiddenSel, RTGCPTR32 pInstrGC); 236 236 237 237 /** … … 242 242 * @param pInstrGC Instruction pointer (0:32 virtual address) 243 243 */ 244 CSAMR3DECL(int) CSAMR3CheckCode(PVM pVM, RTGCPTR pInstrGC);244 CSAMR3DECL(int) CSAMR3CheckCode(PVM pVM, RTGCPTR32 pInstrGC); 245 245 246 246 /** … … 253 253 * @param fScanned Mark as scanned or not 254 254 */ 255 CSAMR3DECL(int) CSAMR3MarkCode(PVM pVM, RTGCPTR pInstr, uint32_t opsize, bool fScanned);255 CSAMR3DECL(int) CSAMR3MarkCode(PVM pVM, RTGCPTR32 pInstr, uint32_t opsize, bool fScanned); 256 256 257 257 /** … … 271 271 * @param enmTag Monitor tag 272 272 */ 273 CSAMR3DECL(int) CSAMR3MonitorPage(PVM pVM, RTGCPTR pPageAddrGC, CSAMTAG enmTag);273 CSAMR3DECL(int) CSAMR3MonitorPage(PVM pVM, RTGCPTR32 pPageAddrGC, CSAMTAG enmTag); 274 274 275 275 /** … … 281 281 * @param enmTag Monitor tag 282 282 */ 283 CSAMR3DECL(int) CSAMR3UnmonitorPage(PVM pVM, RTGCPTR pPageAddrGC, CSAMTAG enmTag);283 CSAMR3DECL(int) CSAMR3UnmonitorPage(PVM pVM, RTGCPTR32 pPageAddrGC, CSAMTAG enmTag); 284 284 285 285 /** … … 300 300 * @param GCPtrCall Call address 301 301 */ 302 CSAMR3DECL(int) CSAMR3RecordCallAddress(PVM pVM, RTGCPTR GCPtrCall);302 CSAMR3DECL(int) CSAMR3RecordCallAddress(PVM pVM, RTGCPTR32 GCPtrCall); 303 303 304 304 /** @} */ -
trunk/include/VBox/patm.h
r9212 r9220 95 95 uint32_t fPIF; 96 96 /* PATM inhibit irq address (used by sti) */ 97 RTGCPTR GCPtrInhibitInterrupts;97 RTGCPTR32 GCPtrInhibitInterrupts; 98 98 99 99 /* Scratch room for call patch */ 100 RTGCPTR GCCallPatchTargetAddr;101 RTGCPTR GCCallReturnAddr;100 RTGCPTR32 GCCallPatchTargetAddr; 101 RTGCPTR32 GCCallReturnAddr; 102 102 103 103 /* Temporary storage for guest registers. */ … … 116 116 { 117 117 // pointer to original guest code instruction (for emulation) 118 RTGCPTR pNewEIP;118 RTGCPTR32 pNewEIP; 119 119 // pointer to the next guest code instruction 120 RTGCPTR pNextInstr;120 RTGCPTR32 pNextInstr; 121 121 //pointer to the corresponding next instruction in the patch block 122 RTGCPTR pNextPatchInstr;122 RTGCPTR32 pNextPatchInstr; 123 123 } PATMTRAPREC, *PPATMTRAPREC; 124 124 … … 195 195 * @param pAddr Guest context address 196 196 */ 197 PATMDECL(bool) PATMIsPatchGCAddr(PVM pVM, RTGCPTR pAddr);197 PATMDECL(bool) PATMIsPatchGCAddr(PVM pVM, RTGCPTR32 pAddr); 198 198 199 199 /** … … 203 203 * @param pAddrGC Guest context address 204 204 */ 205 PATMDECL(bool) PATMShouldUseRawMode(PVM pVM, RTGCPTR pAddrGC);205 PATMDECL(bool) PATMShouldUseRawMode(PVM pVM, RTGCPTR32 pAddrGC); 206 206 207 207 /** … … 221 221 * @param pCachedData GC pointer to cached data 222 222 */ 223 PATMDECL(int) PATMSetMMIOPatchInfo(PVM pVM, RTGCPHYS GCPhys, RTGCPTR pCachedData);223 PATMDECL(int) PATMSetMMIOPatchInfo(PVM pVM, RTGCPHYS GCPhys, RTGCPTR32 pCachedData); 224 224 225 225 … … 233 233 * @param pRelBranchPatch Relative duplicated function address 234 234 */ 235 PATMDECL(int) PATMAddBranchToLookupCache(PVM pVM, RTGCPTR pJumpTableGC, RTGCPTRpBranchTarget, RTGCUINTPTR pRelBranchPatch);235 PATMDECL(int) PATMAddBranchToLookupCache(PVM pVM, RTGCPTR32 pJumpTableGC, RTGCPTR32 pBranchTarget, RTGCUINTPTR pRelBranchPatch); 236 236 237 237 … … 256 256 * @param pSize Original instruction size (out, optional) 257 257 */ 258 PATMDECL(bool) PATMIsInt3Patch(PVM pVM, RTGCPTR pInstrGC, uint32_t *pOpcode, uint32_t *pSize);258 PATMDECL(bool) PATMIsInt3Patch(PVM pVM, RTGCPTR32 pInstrGC, uint32_t *pOpcode, uint32_t *pSize); 259 259 260 260 … … 310 310 * 311 311 */ 312 PATMGCDECL(int) PATMGCHandleWriteToPatchPage(PVM pVM, PCPUMCTXCORE pRegFrame, RTGCPTR GCPtr, uint32_t cbWrite);312 PATMGCDECL(int) PATMGCHandleWriteToPatchPage(PVM pVM, PCPUMCTXCORE pRegFrame, RTGCPTR32 GCPtr, uint32_t cbWrite); 313 313 314 314 /** … … 402 402 * @param pcb Size of the patch memory block 403 403 */ 404 PATMR3DECL(RTGCPTR ) PATMR3QueryPatchMemGC(PVM pVM, uint32_t *pcb);404 PATMR3DECL(RTGCPTR32) PATMR3QueryPatchMemGC(PVM pVM, uint32_t *pcb); 405 405 406 406 /** … … 412 412 * @param pPatchAddr Guest context patch address (if true) 413 413 */ 414 PATMR3DECL(bool) PATMR3IsInsidePatchJump(PVM pVM, RTGCPTR pAddr, PRTGCPTRpPatchAddr);414 PATMR3DECL(bool) PATMR3IsInsidePatchJump(PVM pVM, RTGCPTR32 pAddr, PRTGCPTR32 pPatchAddr); 415 415 416 416 … … 422 422 * @param pAddrGC Guest context address 423 423 */ 424 PATMR3DECL(RTGCPTR ) PATMR3QueryPatchGCPtr(PVM pVM, RTGCPTRpAddrGC);424 PATMR3DECL(RTGCPTR32) PATMR3QueryPatchGCPtr(PVM pVM, RTGCPTR32 pAddrGC); 425 425 426 426 /** … … 440 440 * @param pAddrGC GC pointer 441 441 */ 442 PATMR3DECL(R3PTRTYPE(void *)) PATMR3GCPtrToHCPtr(PVM pVM, RTGCPTR pAddrGC);442 PATMR3DECL(R3PTRTYPE(void *)) PATMR3GCPtrToHCPtr(PVM pVM, RTGCPTR32 pAddrGC); 443 443 444 444 … … 460 460 * @param pNewEip GC pointer to new instruction 461 461 */ 462 PATMR3DECL(int) PATMR3HandleTrap(PVM pVM, PCPUMCTX pCtx, RTGCPTR pEip, RTGCPTR *ppNewEip);462 PATMR3DECL(int) PATMR3HandleTrap(PVM pVM, PCPUMCTX pCtx, RTGCPTR32 pEip, RTGCPTR *ppNewEip); 463 463 464 464 /** … … 479 479 * 480 480 */ 481 PATMR3DECL(int) PATMR3PatchWrite(PVM pVM, RTGCPTR GCPtr, uint32_t cbWrite);481 PATMR3DECL(int) PATMR3PatchWrite(PVM pVM, RTGCPTR32 GCPtr, uint32_t cbWrite); 482 482 483 483 /** … … 488 488 * @param addr GC address of the page to flush 489 489 */ 490 PATMR3DECL(int) PATMR3FlushPage(PVM pVM, RTGCPTR addr);490 PATMR3DECL(int) PATMR3FlushPage(PVM pVM, RTGCPTR32 addr); 491 491 492 492 /** … … 509 509 * @note returns failure if patching is not allowed or possible 510 510 */ 511 PATMR3DECL(int) PATMR3InstallPatch(PVM pVM, RTGCPTR pInstrGC, uint64_t flags);511 PATMR3DECL(int) PATMR3InstallPatch(PVM pVM, RTGCPTR32 pInstrGC, uint64_t flags); 512 512 513 513 /** … … 519 519 * @param flags Patch flags 520 520 */ 521 PATMR3DECL(int) PATMR3AddHint(PVM pVM, RTGCPTR pInstrGC, uint32_t flags);521 PATMR3DECL(int) PATMR3AddHint(PVM pVM, RTGCPTR32 pInstrGC, uint32_t flags); 522 522 523 523 /** … … 541 541 * 542 542 */ 543 PATMR3DECL(RTGCPTR ) PATMR3PatchToGCPtr(PVM pVM, RTGCPTRpPatchGC, PATMTRANSSTATE *pEnmState);543 PATMR3DECL(RTGCPTR32) PATMR3PatchToGCPtr(PVM pVM, RTGCPTR32 pPatchGC, PATMTRANSSTATE *pEnmState); 544 544 545 545 /** … … 551 551 * 552 552 */ 553 PATMR3DECL(RTGCPTR ) PATMR3GuestGCPtrToPatchGCPtr(PVM pVM, RCPTRTYPE(uint8_t*) pInstrGC);553 PATMR3DECL(RTGCPTR32) PATMR3GuestGCPtrToPatchGCPtr(PVM pVM, RCPTRTYPE(uint8_t*) pInstrGC); 554 554 555 555 /** … … 563 563 * 564 564 */ 565 PATMR3DECL(int) PATMR3QueryOpcode(PVM pVM, RTGCPTR pInstrGC, uint8_t *pByte);565 PATMR3DECL(int) PATMR3QueryOpcode(PVM pVM, RTGCPTR32 pInstrGC, uint8_t *pByte); 566 566 567 567 /** … … 575 575 * 576 576 */ 577 PATMR3DECL(int) PATMR3DisablePatch(PVM pVM, RTGCPTR pInstrGC);577 PATMR3DECL(int) PATMR3DisablePatch(PVM pVM, RTGCPTR32 pInstrGC); 578 578 579 579 … … 588 588 * 589 589 */ 590 PATMR3DECL(int) PATMR3EnablePatch(PVM pVM, RTGCPTR pInstrGC);590 PATMR3DECL(int) PATMR3EnablePatch(PVM pVM, RTGCPTR32 pInstrGC); 591 591 592 592 … … 601 601 * 602 602 */ 603 PATMR3DECL(int) PATMR3RemovePatch(PVM pVM, RTGCPTR pInstrGC);603 PATMR3DECL(int) PATMR3RemovePatch(PVM pVM, RTGCPTR32 pInstrGC); 604 604 605 605 … … 612 612 * @param pConflictGC Guest context pointer to check 613 613 */ 614 PATMR3DECL(int) PATMR3DetectConflict(PVM pVM, RTGCPTR pInstrGC, RTGCPTRpConflictGC);614 PATMR3DECL(int) PATMR3DetectConflict(PVM pVM, RTGCPTR32 pInstrGC, RTGCPTR32 pConflictGC); 615 615 616 616 … … 622 622 * @param pInstrGC Guest context pointer to instruction 623 623 */ 624 PATMR3DECL(bool) PATMR3HasBeenPatched(PVM pVM, RTGCPTR pInstrGC);624 PATMR3DECL(bool) PATMR3HasBeenPatched(PVM pVM, RTGCPTR32 pInstrGC); 625 625 626 626 … … 634 634 * 635 635 */ 636 PATMR3DECL(int) PATMInstallSpinlockPatch(PVM pVM, RTGCPTR pCallAcquireSpinlockGC, uint32_t cbAcquireSpinlockCall);636 PATMR3DECL(int) PATMInstallSpinlockPatch(PVM pVM, RTGCPTR32 pCallAcquireSpinlockGC, uint32_t cbAcquireSpinlockCall); 637 637 638 638 … … 645 645 * 646 646 */ 647 PATMR3DECL(bool) PATMIsSpinlockAcquire(PVM pVM, RTGCPTR pCallTargetGC);647 PATMR3DECL(bool) PATMIsSpinlockAcquire(PVM pVM, RTGCPTR32 pCallTargetGC); 648 648 649 649 /** … … 655 655 * 656 656 */ 657 PATMR3DECL(bool) PATMIsSpinlockRelease(PVM pVM, RTGCPTR pCallTargetGC);657 PATMR3DECL(bool) PATMIsSpinlockRelease(PVM pVM, RTGCPTR32 pCallTargetGC); 658 658 659 659 /** … … 665 665 * 666 666 */ 667 PATMR3DECL(bool) PATMIsSpinlockReleasePatch(PVM pVM, RTGCPTR pCallTargetGC);667 PATMR3DECL(bool) PATMIsSpinlockReleasePatch(PVM pVM, RTGCPTR32 pCallTargetGC); 668 668 669 669 /** @} */
Note:
See TracChangeset
for help on using the changeset viewer.