VirtualBox

儲存庫 vbox 的更動 62649


忽略:
時間撮記:
2016-7-28 下午10:05:03 (8 年 以前)
作者:
vboxsync
訊息:

VMMR3: warnings

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/VMM/VMMR3/PATM.cpp

    r62648 r62649  
    28212821    PPATCHINFO pPatch = &pPatchRec->patch;
    28222822    int rc = VERR_PATCHING_REFUSED;
    2823     uint32_t orgOffsetPatchMem = ~0;
     2823    uint32_t orgOffsetPatchMem = UINT32_MAX;
    28242824    RTRCPTR pInstrStart;
    28252825    bool fInserted;
     
    30573057    RTRCPTR  pCurInstrGC = pInstrGC;
    30583058    uint8_t *pCurInstrHC, *pInstrHC;
    3059     uint32_t orgOffsetPatchMem = ~0;
     3059    uint32_t orgOffsetPatchMem = UINT32_MAX;
    30603060
    30613061    pInstrHC = pCurInstrHC = patmR3GCVirtToHCVirt(pVM, pCacheRec, pCurInstrGC);
     
    31813181    PPATCHINFO pPatch = &pPatchRec->patch;
    31823182    int rc = VERR_PATCHING_REFUSED;
    3183     uint32_t orgOffsetPatchMem = ~0;
     3183    uint32_t orgOffsetPatchMem = UINT32_MAX;
    31843184    bool fInserted;
    31853185
     
    32823282    PPATCHINFO pPatch = &pPatchRec->patch;
    32833283    int rc = VERR_PATCHING_REFUSED;
    3284     uint32_t orgOffsetPatchMem = ~0;
     3284    uint32_t orgOffsetPatchMem = UINT32_MAX;
    32853285    bool fInserted;
    32863286
     
    34133413    PPATCHINFO  pPatch = &pPatchRec->patch;
    34143414    RTRCPTR     pPage, pPatchTargetGC = 0;
    3415     uint32_t    orgOffsetPatchMem = ~0;
     3415    uint32_t    orgOffsetPatchMem = UINT32_MAX;
    34163416    int         rc = VERR_PATCHING_REFUSED;
    34173417    PPATCHINFO  pPatchToJmp = NULL; /**< Patch the trampoline jumps to. */
     
    39063906static int patmDeactivateInt3Patch(PVM pVM, PPATCHINFO pPatch)
    39073907{
    3908     uint8_t ASMInt3 = 0xCC;
     3908    uint8_t cbASMInt3 = 1;
    39093909    int     rc;
    39103910
     
    39133913
    39143914    /* 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);
    39163916    AssertRC(rc);
    39173917    return rc;
     
    39343934int patmR3PatchInstrInt3(PVM pVM, RTRCPTR pInstrGC, R3PTRTYPE(uint8_t *) pInstrHC, DISCPUSTATE *pCpu, PPATCHINFO pPatch)
    39353935{
    3936     uint8_t bASMInt3 = 0xCC;
     3936    uint8_t cbASMInt3 = 1;
    39373937    int rc;
    39383938
     
    39433943    rc = PGMPhysSimpleReadGCPtr(VMMGetCpu0(pVM), pPatch->aPrivInstr, pPatch->pPrivInstrGC, pPatch->cbPrivInstr);
    39443944    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. */
    39463946
    39473947    pPatch->flags |= PATMFL_INT3_REPLACEMENT;
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette