Changeset 73091 in vbox for trunk/src/VBox/Devices/Storage
- Timestamp:
- Jul 12, 2018 1:51:05 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevLsiLogicSCSI.cpp
r71775 r73091 4852 4852 if (uVersion > LSILOGIC_SAVED_STATE_VERSION_PRE_DIAG_MEM) 4853 4853 { 4854 4855 /* Save diagnostic memory register and data regions. */ 4856 SSMR3GetU32(pSSM, &pThis->u32DiagMemAddr); 4854 4857 uint32_t cMemRegions = 0; 4855 4856 /* Save diagnostic memory register and data regions. */ 4857 SSMR3GetU32 (pSSM, &pThis->u32DiagMemAddr); 4858 SSMR3GetU32 (pSSM, &cMemRegions); 4858 rc = SSMR3GetU32(pSSM, &cMemRegions); 4859 AssertLogRelReturn(rc, rc); 4859 4860 4860 4861 while (cMemRegions) 4861 4862 { 4862 4863 uint32_t u32AddrStart = 0; 4864 SSMR3GetU32(pSSM, &u32AddrStart); 4863 4865 uint32_t u32AddrEnd = 0; 4864 uint32_t cRegion = 0; 4865 PLSILOGICMEMREGN pRegion = NULL; 4866 4867 SSMR3GetU32(pSSM, &u32AddrStart); 4868 SSMR3GetU32(pSSM, &u32AddrEnd); 4869 4870 cRegion = u32AddrEnd - u32AddrStart + 1; 4871 pRegion = (PLSILOGICMEMREGN)RTMemAllocZ(RT_OFFSETOF(LSILOGICMEMREGN, au32Data[cRegion])); 4866 rc = SSMR3GetU32(pSSM, &u32AddrEnd); 4867 AssertLogRelReturn(rc, rc); 4868 4869 uint32_t cRegion = u32AddrEnd - u32AddrStart + 1; 4870 PLSILOGICMEMREGN pRegion = (PLSILOGICMEMREGN)RTMemAllocZ(RT_OFFSETOF(LSILOGICMEMREGN, au32Data[cRegion])); 4872 4871 if (pRegion) 4873 4872 {
Note:
See TracChangeset
for help on using the changeset viewer.