儲存庫 vbox 的更動 62649
- 時間撮記:
- 2016-7-28 下午10:05:03 (8 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/VMM/VMMR3/PATM.cpp
r62648 r62649 2821 2821 PPATCHINFO pPatch = &pPatchRec->patch; 2822 2822 int rc = VERR_PATCHING_REFUSED; 2823 uint32_t orgOffsetPatchMem = ~0;2823 uint32_t orgOffsetPatchMem = UINT32_MAX; 2824 2824 RTRCPTR pInstrStart; 2825 2825 bool fInserted; … … 3057 3057 RTRCPTR pCurInstrGC = pInstrGC; 3058 3058 uint8_t *pCurInstrHC, *pInstrHC; 3059 uint32_t orgOffsetPatchMem = ~0;3059 uint32_t orgOffsetPatchMem = UINT32_MAX; 3060 3060 3061 3061 pInstrHC = pCurInstrHC = patmR3GCVirtToHCVirt(pVM, pCacheRec, pCurInstrGC); … … 3181 3181 PPATCHINFO pPatch = &pPatchRec->patch; 3182 3182 int rc = VERR_PATCHING_REFUSED; 3183 uint32_t orgOffsetPatchMem = ~0;3183 uint32_t orgOffsetPatchMem = UINT32_MAX; 3184 3184 bool fInserted; 3185 3185 … … 3282 3282 PPATCHINFO pPatch = &pPatchRec->patch; 3283 3283 int rc = VERR_PATCHING_REFUSED; 3284 uint32_t orgOffsetPatchMem = ~0;3284 uint32_t orgOffsetPatchMem = UINT32_MAX; 3285 3285 bool fInserted; 3286 3286 … … 3413 3413 PPATCHINFO pPatch = &pPatchRec->patch; 3414 3414 RTRCPTR pPage, pPatchTargetGC = 0; 3415 uint32_t orgOffsetPatchMem = ~0;3415 uint32_t orgOffsetPatchMem = UINT32_MAX; 3416 3416 int rc = VERR_PATCHING_REFUSED; 3417 3417 PPATCHINFO pPatchToJmp = NULL; /**< Patch the trampoline jumps to. */ … … 3906 3906 static int patmDeactivateInt3Patch(PVM pVM, PPATCHINFO pPatch) 3907 3907 { 3908 uint8_t ASMInt3 = 0xCC;3908 uint8_t cbASMInt3 = 1; 3909 3909 int rc; 3910 3910 … … 3913 3913 3914 3914 /* Restore first opcode byte. */ 3915 rc = PGMPhysSimpleDirtyWriteGCPtr(VMMGetCpu0(pVM), pPatch->pPrivInstrGC, pPatch->aPrivInstr, sizeof(ASMInt3));3915 rc = PGMPhysSimpleDirtyWriteGCPtr(VMMGetCpu0(pVM), pPatch->pPrivInstrGC, pPatch->aPrivInstr, cbASMInt3); 3916 3916 AssertRC(rc); 3917 3917 return rc; … … 3934 3934 int patmR3PatchInstrInt3(PVM pVM, RTRCPTR pInstrGC, R3PTRTYPE(uint8_t *) pInstrHC, DISCPUSTATE *pCpu, PPATCHINFO pPatch) 3935 3935 { 3936 uint8_t bASMInt3 = 0xCC;3936 uint8_t cbASMInt3 = 1; 3937 3937 int rc; 3938 3938 … … 3943 3943 rc = PGMPhysSimpleReadGCPtr(VMMGetCpu0(pVM), pPatch->aPrivInstr, pPatch->pPrivInstrGC, pPatch->cbPrivInstr); 3944 3944 AssertRC(rc); 3945 pPatch->cbPatchJump = sizeof(bASMInt3); /* bit of a misnomer in this case; size of replacement instruction. */3945 pPatch->cbPatchJump = cbASMInt3; /* bit of a misnomer in this case; size of replacement instruction. */ 3946 3946 3947 3947 pPatch->flags |= PATMFL_INT3_REPLACEMENT;
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器