VirtualBox

Changeset 31209 in vbox


Ignore:
Timestamp:
Jul 29, 2010 1:11:00 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
64211
Message:

DevPcBios.cpp: Do the reset after loading the lanboot ROM and fill the shadow pages the same way each time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevPcBios.cpp

    r30451 r31209  
    12341234
    12351235    /*
    1236      * Call reset to set values and stuff.
    1237      */
    1238     pcbiosReset(pDevIns);
    1239 
    1240     /*
    12411236     * Get the LAN boot ROM file name.
    12421237     */
     
    13461341        rc = PDMDevHlpROMRegister(pDevIns, VBOX_LANBOOT_SEG << 4, cbLanBootBinary, pu8LanBootBinary,
    13471342                                  PGMPHYS_ROM_FLAGS_SHADOWED, "Net Boot ROM");
    1348         if (RT_SUCCESS(rc))
    1349         {
    1350             rc = PDMDevHlpROMProtectShadow(pDevIns, VBOX_LANBOOT_SEG << 4, cbLanBootBinary, PGMROMPROT_READ_RAM_WRITE_RAM);
    1351             AssertRCReturn(rc, rc);
    1352             rc = PDMDevHlpPhysWrite(pDevIns, VBOX_LANBOOT_SEG << 4, pu8LanBootBinary, cbLanBootBinary);
    1353             AssertRCReturn(rc, rc);
    1354         }
     1343        AssertRCReturn(rc, rc);
    13551344    }
    13561345
     
    13621351        pThis->uBootDelay = 15;
    13631352
    1364     return rc;
     1353    /*
     1354     * Call reset plant tables and shadow the PXE ROM.
     1355     */
     1356    pcbiosReset(pDevIns);
     1357
     1358    return VINF_SUCCESS;
    13651359}
    13661360
Note: See TracChangeset for help on using the changeset viewer.

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