Changeset 13595 in vbox
- Timestamp:
- Oct 27, 2008 6:44:32 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/ssm.h
r13594 r13595 460 460 VMMR3DECL(int) SSMR3PutGCUIntPtr(PSSMHANDLE pSSM, RTGCUINTPTR GCPtr); 461 461 VMMR3DECL(int) SSMR3PutRCPtr(PSSMHANDLE pSSM, RTRCPTR RCPtr); 462 VMMR3DECL(int) SSMR3PutHCUInt(PSSMHANDLE pSSM, RTHCUINT u);463 VMMR3DECL(int) SSMR3PutHCSInt(PSSMHANDLE pSSM, RTHCINT i);464 462 VMMR3DECL(int) SSMR3PutIOPort(PSSMHANDLE pSSM, RTIOPORT IOPort); 465 463 VMMR3DECL(int) SSMR3PutSel(PSSMHANDLE pSSM, RTSEL Sel); … … 496 494 VMMR3DECL(int) SSMR3GetRCPtr(PSSMHANDLE pSSM, PRTRCPTR pRCPtr); 497 495 VMMR3DECL(int) SSMR3GetIOPort(PSSMHANDLE pSSM, PRTIOPORT pIOPort); 498 VMMR3DECL(int) SSMR3GetHCUInt(PSSMHANDLE pSSM, PRTHCUINT pu);499 VMMR3DECL(int) SSMR3GetHCSInt(PSSMHANDLE pSSM, PRTHCINT pi);500 496 VMMR3DECL(int) SSMR3GetSel(PSSMHANDLE pSSM, PRTSEL pSel); 501 497 VMMR3DECL(int) SSMR3GetMem(PSSMHANDLE pSSM, void *pv, size_t cb); -
trunk/src/VBox/VMM/SSM.cpp
r13594 r13595 2505 2505 2506 2506 /** 2507 * Saves a HC natural unsigned integer item to the current data unit.2508 *2509 * @returns VBox status.2510 * @param pSSM SSM operation handle.2511 * @param u Item to save.2512 */2513 VMMR3DECL(int) SSMR3PutHCUInt(PSSMHANDLE pSSM, RTHCUINT u)2514 {2515 if (pSSM->enmOp == SSMSTATE_SAVE_EXEC)2516 return ssmR3Write(pSSM, &u, sizeof(u));2517 AssertMsgFailed(("Invalid state %d\n", pSSM->enmOp));2518 return VERR_SSM_INVALID_STATE;2519 }2520 2521 2522 /**2523 * Saves a HC natural signed integer item to the current data unit.2524 *2525 * @returns VBox status.2526 * @param pSSM SSM operation handle.2527 * @param i Item to save.2528 */2529 VMMR3DECL(int) SSMR3PutHCSInt(PSSMHANDLE pSSM, RTHCINT i)2530 {2531 if (pSSM->enmOp == SSMSTATE_SAVE_EXEC)2532 return ssmR3Write(pSSM, &i, sizeof(i));2533 AssertMsgFailed(("Invalid state %d\n", pSSM->enmOp));2534 return VERR_SSM_INVALID_STATE;2535 }2536 2537 2538 /**2539 2507 * Saves a I/O port address item to the current data unit. 2540 2508 *
Note:
See TracChangeset
for help on using the changeset viewer.