VirtualBox

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


Ignore:
Timestamp:
Feb 24, 2010 10:22:51 AM (15 years ago)
Author:
vboxsync
Message:

BIOS/DMI: fixed a bug where structures without strings were not properly terminated and increase the limit for DMI strings a little bit

File:
1 edited

Legend:

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

    r26601 r26728  
    480480                               &pThis->aUuid,
    481481                               pDevIns->pCfg,
    482                                true /* fPutSmbiosHeaders */);
     482                               /*fPutSmbiosHeaders=*/true);
    483483    Assert(RT_SUCCESS(rc));
    484484
    485485    if (pThis->u8IOAPIC)
    486486        FwCommonPlantMpsTable(pDevIns,
    487                           pThis->au8DMIPage + VBOX_DMI_TABLE_SIZE,
    488                           pThis->cCpus);
     487                              pThis->au8DMIPage + VBOX_DMI_TABLE_SIZE,
     488                              _4K - VBOX_DMI_TABLE_SIZE,
     489                              pThis->cCpus);
    489490    rc = PDMDevHlpROMRegister(pDevIns, VBOX_DMI_TABLE_BASE, _4K, pThis->au8DMIPage,
    490491                              PGMPHYS_ROM_FLAGS_PERMANENT_BINARY, "DMI tables");
     
    11451146    pThis->u64TscFrequency = RTMpGetMaxFrequency(0) * 1024 * 1024;// TMCpuTicksPerSecond(PDMDevHlpGetVM(pDevIns));
    11461147    if (pThis->u64TscFrequency == 0)
    1147         pThis->u64TscFrequency = 2500000000;
     1148        pThis->u64TscFrequency = UINT64_C(2500000000);
    11481149    /* Multiplier is read from MSR_IA32_PERF_STATUS, and now is hardcoded as 4 */
    11491150    pThis->u64FsbFrequency = pThis->u64TscFrequency / 4;
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