VirtualBox

Changeset 34163 in vbox for trunk/src/VBox/Devices/EFI


Ignore:
Timestamp:
Nov 18, 2010 12:16:43 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
67884
Message:

PGMR3PhysRomRegister/PDMDevHlpROMRegister: Added cbBinary argument to allow specifying a binary smaller than the range (no alignment restrictions either). Untested.

File:
1 edited

Legend:

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

    r33540 r34163  
    801801                              cbQuart,
    802802                              pThis->pu8EfiRom,
     803                              cbQuart,
    803804                              PGMPHYS_ROM_FLAGS_SHADOWED | PGMPHYS_ROM_FLAGS_PERMANENT_BINARY,
    804805                              "EFI Firmware Volume");
     
    809810                              cbQuart,
    810811                              pThis->pu8EfiRom + cbQuart,
     812                              cbQuart,
    811813                              PGMPHYS_ROM_FLAGS_SHADOWED | PGMPHYS_ROM_FLAGS_PERMANENT_BINARY,
    812814                              "EFI Firmware Volume (Part 2)");
     
    817819                              cbQuart,
    818820                              pThis->pu8EfiRom + cbQuart * 2,
     821                              cbQuart,
    819822                              PGMPHYS_ROM_FLAGS_SHADOWED | PGMPHYS_ROM_FLAGS_PERMANENT_BINARY,
    820823                              "EFI Firmware Volume (Part 3)");
     
    825828                              pThis->cbEfiRom - cbQuart * 3,
    826829                              pThis->pu8EfiRom + cbQuart * 3,
     830                              pThis->cbEfiRom - cbQuart * 3,
    827831                              PGMPHYS_ROM_FLAGS_SHADOWED | PGMPHYS_ROM_FLAGS_PERMANENT_BINARY,
    828832                              "EFI Firmware Volume (Part 4)");
     
    887891    /* Register the page as a ROM (data will be copied). */
    888892    rc = PDMDevHlpROMRegister(pThis->pDevIns, UINT32_C(0xfffff000), PAGE_SIZE,
    889                               pThis->pu8EfiThunk,
     893                              pThis->pu8EfiThunk, PAGE_SIZE,
    890894                              PGMPHYS_ROM_FLAGS_PERMANENT_BINARY, "EFI Thunk");
    891895    if (RT_FAILURE(rc))
     
    902906     */
    903907    rc = PDMDevHlpROMRegister(pThis->pDevIns, 0xff000, PAGE_SIZE,
    904                               pThis->pu8EfiThunk,
     908                              pThis->pu8EfiThunk, PAGE_SIZE,
    905909                              PGMPHYS_ROM_FLAGS_PERMANENT_BINARY, "EFI Thunk (2)");
    906910    if (RT_FAILURE(rc))
     
    12051209                              _4K - VBOX_DMI_TABLE_SIZE,
    12061210                              pThis->cCpus);
    1207     rc = PDMDevHlpROMRegister(pDevIns, VBOX_DMI_TABLE_BASE, _4K, pThis->au8DMIPage,
     1211    rc = PDMDevHlpROMRegister(pDevIns, VBOX_DMI_TABLE_BASE, _4K, pThis->au8DMIPage, _4K,
    12081212                              PGMPHYS_ROM_FLAGS_PERMANENT_BINARY, "DMI tables");
    12091213
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