Changeset 44620 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Feb 10, 2013 8:42:53 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/DevEFI.cpp
r44610 r44620 225 225 #define EFI_SSM_VERSION_4_2 1 226 226 227 /** Non-volatile EFI variable. */ 228 #define VBOX_EFI_VARIABLE_NON_VOLATILE UINT32_C(0x00000001) 229 /** Non-volatile EFI variable. */ 230 #define VBOX_EFI_VARIABLE_READ_ONLY UINT32_C(0x00000008) 231 227 232 228 233 /******************************************************************************* … … 389 394 RTListForEach(&pThis->NVRAM.VarList, pEfiVar, EFIVAR, ListNode) 390 395 { 396 /* Skip volatile variables. */ 397 if (!(pEfiVar->fAttributes & VBOX_EFI_VARIABLE_NON_VOLATILE)) 398 continue; 399 391 400 int rc2 = pThis->Lun0.pNvramDrv->pfnVarStoreSeqPut(pThis->Lun0.pNvramDrv, idxVar, 392 401 &pEfiVar->uuid, pEfiVar->szName, pEfiVar->cchName, … … 1336 1345 static DECLCALLBACK(int) efiInitComplete(PPDMDEVINS pDevIns) 1337 1346 { 1338 /* PC Bios */1339 1347 PDEVEFI pThis = PDMINS_2_DATA(pDevIns, PDEVEFI); 1348 1349 /* 1350 * Memory sizes. 1351 */ 1352 uint64_t const offRamHole = _4G - pThis->cbRamHole; 1340 1353 uint32_t u32; 1341 1342 /*1343 * Memory sizes.1344 */1345 uint64_t const offRamHole = _4G - pThis->cbRamHole;1346 1354 if (pThis->cbRam > 16 * _1M) 1347 1355 u32 = (uint32_t)( (RT_MIN(RT_MIN(pThis->cbRam, offRamHole), UINT32_C(0xffe00000)) - 16U * _1M) / _64K );
Note:
See TracChangeset
for help on using the changeset viewer.