VirtualBox

Changeset 57713 in vbox for trunk


Ignore:
Timestamp:
Sep 11, 2015 11:49:07 AM (9 years ago)
Author:
vboxsync
Message:

DevEFI: moved communication with the driver from the destructor to the PowerOff method

File:
1 edited

Legend:

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

    r57358 r57713  
    18091809
    18101810/**
     1811 * @interface_method_impl{PDMDEVREG,pfnPowerOff}
     1812 */
     1813static DECLCALLBACK(void) efiPowerOff(PPDMDEVINS pDevIns)
     1814{
     1815    PDEVEFI  pThis = PDMINS_2_DATA(pDevIns, PDEVEFI);
     1816
     1817    if (pThis->Lun0.pNvramDrv)
     1818        nvramStore(pThis);
     1819}
     1820
     1821
     1822
     1823/**
    18111824 * Destruct a device instance.
    18121825 *
     
    18211834    PDMDEV_CHECK_VERSIONS_RETURN_QUIET(pDevIns);
    18221835
    1823     if (pThis->Lun0.pNvramDrv)
    1824         nvramStore(pThis);
    18251836    nvramFlushDeviceVariableList(pThis);
    18261837
     
    23682379    efiInitComplete,
    23692380    /* pfnPowerOff */
    2370     NULL,
     2381    efiPowerOff,
    23712382    /* pfnSoftReset */
    23722383    NULL,
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