Changeset 94 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Jan 17, 2007 1:11:29 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PATM/PATMSSM.cpp
r93 r94 56 56 #define PATM_ADD_PTR(a, b) *(uintptr_t *)&(a) = (uintptr_t)(a) + (uintptr_t)(b) 57 57 58 #ifdef VBOX_STRICT 58 59 /** 59 60 * Callback function for RTAvlPVDoWithAll … … 65 66 * @param pcPatches Pointer to patch counter 66 67 */ 67 static DECLCALLBACK(int) patmCountLeaf (PAVLPVNODECORE pNode, void *pcPatches)68 static DECLCALLBACK(int) patmCountLeafPV(PAVLPVNODECORE pNode, void *pcPatches) 68 69 { 69 70 *(uint32_t *)pcPatches = *(uint32_t *)pcPatches + 1; 70 71 return VINF_SUCCESS; 71 72 } 73 #endif 74 75 /** 76 * Callback function for RTAvlU32DoWithAll 77 * 78 * Counts the number of patches in the tree 79 * 80 * @returns VBox status code. 81 * @param pNode Current node 82 * @param pcPatches Pointer to patch counter 83 */ 84 static DECLCALLBACK(int) patmCountLeaf(PAVLU32NODECORE pNode, void *pcPatches) 85 { 86 *(uint32_t *)pcPatches = *(uint32_t *)pcPatches + 1; 87 return VINF_SUCCESS; 88 } 72 89 73 90 /** … … 87 104 88 105 /** 89 * Callback function for RTAvl PVDoWithAll106 * Callback function for RTAvlU32DoWithAll 90 107 * 91 108 * Saves all patch to guest lookup records. … … 95 112 * @param pVM1 VM Handle 96 113 */ 97 static DECLCALLBACK(int) patmSaveP2GLookupRecords(PAVL PVNODECORE pNode, void *pVM1)114 static DECLCALLBACK(int) patmSaveP2GLookupRecords(PAVLU32NODECORE pNode, void *pVM1) 98 115 { 99 116 PVM pVM = (PVM)pVM1; … … 173 190 #ifdef VBOX_STRICT 174 191 int nrFixupRecs = 0; 175 RTAvlPVDoWithAll(&pPatch->patch.FixupTree, true, patmCountLeaf , &nrFixupRecs);192 RTAvlPVDoWithAll(&pPatch->patch.FixupTree, true, patmCountLeafPV, &nrFixupRecs); 176 193 AssertMsg(nrFixupRecs == pPatch->patch.nrFixups, ("Fixup inconsistency! counted %d vs %d\n", nrFixupRecs, pPatch->patch.nrFixups)); 177 194 #endif
Note:
See TracChangeset
for help on using the changeset viewer.