Changeset 50965 in vbox for trunk/src/VBox
- Timestamp:
- Apr 3, 2014 2:34:51 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 93123
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Input/DevPS2.cpp
r49886 r50965 53 53 #include "PS2Dev.h" 54 54 55 /* Do not remove this (unless eliminating the corresponding ifdefs), it will i55 /* Do not remove this (unless eliminating the corresponding ifdefs), it will 56 56 * cause instant triple faults when booting Windows VMs. */ 57 57 #define TARGET_I386 58 58 59 #ifndef VBOX_WITH_NEW_PS2M 59 60 #define PCKBD_SAVED_STATE_VERSION 7 60 61 #else 62 #define PCKBD_SAVED_STATE_VERSION 8 63 #endif 61 64 62 65 #ifndef VBOX_DEVICE_STRUCT_TESTCASE … … 1181 1184 s->mouse_event_queue.rptr = 0; 1182 1185 s->mouse_event_queue.wptr = 0; 1186 #else 1187 if (version_id <= 7) 1188 { 1189 int32_t i32Dummy; 1190 SSMR3GetU32(pSSM, &u32Dummy); 1191 SSMR3GetU8(pSSM, &u8Dummy); 1192 SSMR3GetU8(pSSM, &u8Dummy); 1193 SSMR3GetU8(pSSM, &u8Dummy); 1194 SSMR3GetU8(pSSM, &u8Dummy); 1195 SSMR3GetU8(pSSM, &u8Dummy); 1196 SSMR3GetU8(pSSM, &u8Dummy); 1197 SSMR3GetS32(pSSM, &i32Dummy); 1198 SSMR3GetS32(pSSM, &i32Dummy); 1199 SSMR3GetS32(pSSM, &i32Dummy); 1200 if (version_id > 2) 1201 { 1202 SSMR3GetS32(pSSM, &i32Dummy); 1203 SSMR3GetS32(pSSM, &i32Dummy); 1204 } 1205 SSMR3GetU8(pSSM, &u8Dummy); 1206 if (version_id == 4) 1207 { 1208 SSMR3GetU32(pSSM, &u32Dummy); 1209 SSMR3GetU32(pSSM, &u32Dummy); 1210 } 1211 if (version_id > 3) 1212 SSMR3GetU8(pSSM, &u8Dummy); 1213 if (version_id == 4) 1214 SSMR3GetU8(pSSM, &u8Dummy); 1215 } 1183 1216 #endif 1184 1217 … … 1240 1273 Log(("kbd_load: %d mouse event queue items loaded\n", u32)); 1241 1274 #else 1242 if (version_id <= 6)1275 if (version_id <= 7) 1243 1276 { 1244 1277 rc = SSMR3GetU32(pSSM, &u32); … … 1252 1285 } 1253 1286 Log(("kbd_load: %d mouse event queue items discarded from old saved state\n", u32)); 1287 1288 rc = SSMR3GetU32(pSSM, &u32); 1289 if (RT_FAILURE(rc)) 1290 return rc; 1291 for (i = 0; i < u32; i++) 1292 { 1293 rc = SSMR3GetU8(pSSM, &u8Dummy); 1294 if (RT_FAILURE(rc)) 1295 return rc; 1296 } 1297 Log(("kbd_load: %d mouse command queue items discarded from old saved state\n", u32)); 1254 1298 } 1255 1299 #endif … … 1419 1463 rc = PS2KLoadState(&pThis->Kbd, pSSM, uVersion); 1420 1464 #ifdef VBOX_WITH_NEW_PS2M 1421 if (uVersion >= 7)1465 if (uVersion >= 8) 1422 1466 rc = PS2MLoadState(&pThis->Aux, pSSM, uVersion); 1423 1467 #endif
Note:
See TracChangeset
for help on using the changeset viewer.