VirtualBox

Changeset 44620 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Feb 10, 2013 8:42:53 PM (12 years ago)
Author:
vboxsync
Message:

DevEFI.cpp: Don't save volatile variables.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/DevEFI.cpp

    r44610 r44620  
    225225#define EFI_SSM_VERSION_4_2 1
    226226
     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
    227232
    228233/*******************************************************************************
     
    389394        RTListForEach(&pThis->NVRAM.VarList, pEfiVar, EFIVAR, ListNode)
    390395        {
     396            /* Skip volatile variables. */
     397            if (!(pEfiVar->fAttributes & VBOX_EFI_VARIABLE_NON_VOLATILE))
     398                continue;
     399
    391400            int rc2 = pThis->Lun0.pNvramDrv->pfnVarStoreSeqPut(pThis->Lun0.pNvramDrv, idxVar,
    392401                                                               &pEfiVar->uuid, pEfiVar->szName,  pEfiVar->cchName,
     
    13361345static DECLCALLBACK(int) efiInitComplete(PPDMDEVINS pDevIns)
    13371346{
    1338     /* PC Bios */
    13391347    PDEVEFI pThis = PDMINS_2_DATA(pDevIns, PDEVEFI);
     1348
     1349    /*
     1350     * Memory sizes.
     1351     */
     1352    uint64_t const offRamHole = _4G - pThis->cbRamHole;
    13401353    uint32_t u32;
    1341 
    1342     /*
    1343      * Memory sizes.
    1344      */
    1345     uint64_t const offRamHole = _4G - pThis->cbRamHole;
    13461354    if (pThis->cbRam > 16 * _1M)
    13471355        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.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette