- Timestamp:
- Jul 28, 2016 9:47:09 PM (8 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/TRPM.cpp
r62478 r62645 895 895 } 896 896 SSMR3PutBool(pSSM, HMIsEnabled(pVM)); 897 PVMCPU pVCpu = &pVM->aCpus[0]; /* raw mode implies 1 VCPU */897 PVMCPU pVCpu = &pVM->aCpus[0]; /* raw mode implies 1 VCPU */ 898 898 SSMR3PutUInt(pSSM, VM_WHEN_RAW_MODE(VMCPU_FF_IS_SET(pVCpu, VMCPU_FF_TRPM_SYNC_IDT), 0)); 899 899 SSMR3PutMem(pSSM, &pTrpm->au32IdtPatched[0], sizeof(pTrpm->au32IdtPatched)); 900 SSMR3PutU32(pSSM, ~0);/* separator. */900 SSMR3PutU32(pSSM, UINT32_MAX); /* separator. */ 901 901 902 902 /* … … 913 913 } 914 914 915 return SSMR3PutU32(pSSM, ~0);/* terminator */915 return SSMR3PutU32(pSSM, UINT32_MAX); /* terminator */ 916 916 } 917 917 … … 1226 1226 * Check if address is a gate handler (interrupt or trap). 1227 1227 * 1228 * @returns gate nr or ~0is not found1228 * @returns gate nr or UINT32_MAX is not found 1229 1229 * 1230 1230 * @param pVM The cross context VM structure. … … 1250 1250 } 1251 1251 } 1252 return ~0;1252 return UINT32_MAX; 1253 1253 } 1254 1254 -
trunk/src/VBox/VMM/include/TRPMInternal.h
r62478 r62645 177 177 #endif 178 178 } TRPM; 179 #pragma pack() 179 180 180 181 /** Pointer to TRPM Data. */ … … 228 229 RTGCUINT uSavedVector; /**< @todo don't use RTGCUINT */ 229 230 231 /** Saved errorcode. */ 232 RTGCUINT uSavedErrorCode; 233 234 /** Saved cr2. */ 235 RTGCUINTPTR uSavedCR2; 236 230 237 /** Saved trap type. */ 231 238 TRPMEVENT enmSavedType; 232 233 /** Saved errorcode. */234 RTGCUINT uSavedErrorCode;235 236 /** Saved cr2. */237 RTGCUINTPTR uSavedCR2;238 239 /** Previous trap vector # - for debugging. */240 RTGCUINT uPrevVector;241 239 242 240 /** Instruction length for software interrupts and software exceptions … … 249 247 /** Padding. */ 250 248 uint8_t au8Padding[2]; 249 250 /** Previous trap vector # - for debugging. */ 251 RTGCUINT uPrevVector; 251 252 } TRPMCPU; 252 253 253 254 /** Pointer to TRPMCPU Data. */ 254 255 typedef TRPMCPU *PTRPMCPU; 255 256 #pragma pack()257 256 258 257 -
trunk/src/VBox/VMM/include/TRPMInternal.mac
r62478 r62645 75 75 .uActiveCR2 RTGCPTR_RES 1 76 76 .uSavedVector RTGCPTR_RES 1 77 .enmSavedType resd 178 77 .uSavedErrorCode RTGCPTR_RES 1 79 78 .uSavedCR2 RTGCPTR_RES 1 80 . uPrevVector RTGCPTR_RES179 .enmSavedType resd 1 81 80 .cbInstr resb 1 82 81 .cbSavedInstr resb 1 83 82 .au8Padding resb 2 83 .uPrevVector RTGCPTR_RES 1 84 84 endstruc 85 85
Note:
See TracChangeset
for help on using the changeset viewer.