Changeset 73142 in vbox
- Timestamp:
- Jul 16, 2018 9:09:38 AM (6 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 4 edited
-
EFI/DevEFI.cpp (modified) (2 diffs)
-
PC/DevFwCommon.cpp (modified) (2 diffs)
-
PC/DevFwCommon.h (modified) (2 diffs)
-
PC/DevPcBios.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/DevEFI.cpp
r72631 r73142 1804 1804 RT_NOREF(enmCtx); 1805 1805 PDEVEFI pThis = PDMINS_2_DATA(pDevIns, PDEVEFI); 1806 1807 /*1808 * Plant some structures in RAM.1809 */1810 if (pThis->u8IOAPIC)1811 FwCommonPlantMpsFloatPtr(pDevIns);1812 1806 1813 1807 /* … … 2432 2426 2433 2427 if (pThis->u8IOAPIC) 2428 { 2434 2429 FwCommonPlantMpsTable(pDevIns, 2435 pThis->au8DMIPage + VBOX_DMI_TABLE_SIZE + VBOX_DMI_HDR_SIZE,2430 pThis->au8DMIPage /* aka VBOX_DMI_TABLE_BASE */ + VBOX_DMI_TABLE_SIZE + VBOX_DMI_HDR_SIZE, 2436 2431 _4K - VBOX_DMI_TABLE_SIZE - VBOX_DMI_HDR_SIZE, pThis->cCpus); 2432 FwCommonPlantMpsFloatPtr(pDevIns, VBOX_DMI_TABLE_BASE + VBOX_DMI_TABLE_SIZE + VBOX_DMI_HDR_SIZE); 2433 } 2437 2434 2438 2435 rc = PDMDevHlpROMRegister(pDevIns, VBOX_DMI_TABLE_BASE, _4K, pThis->au8DMIPage, _4K, -
trunk/src/VBox/Devices/PC/DevFwCommon.cpp
r71061 r73142 1169 1169 * Only applicable if IOAPIC is active! 1170 1170 * 1171 * @param pDevIns The device instance data. 1171 * @param pDevIns The device instance data. 1172 * @param u32MpTableAddr The MP table physical address. 1172 1173 */ 1173 void FwCommonPlantMpsFloatPtr(PPDMDEVINS pDevIns )1174 void FwCommonPlantMpsFloatPtr(PPDMDEVINS pDevIns, uint32_t u32MpTableAddr) 1174 1175 { 1175 1176 MPSFLOATPTR floatPtr; … … 1178 1179 floatPtr.au8Signature[2] = 'P'; 1179 1180 floatPtr.au8Signature[3] = '_'; 1180 floatPtr.u32MPSAddr = VBOX_MPS_TABLE_BASE;1181 floatPtr.u32MPSAddr = u32MpTableAddr; 1181 1182 floatPtr.u8Length = 1; /* structure size in paragraphs */ 1182 1183 floatPtr.u8SpecRev = 4; /* MPS revision 1.4 */ -
trunk/src/VBox/Devices/PC/DevFwCommon.h
r71061 r73142 21 21 #include "DevPcBios.h" 22 22 23 /** @def VBOX_MPS_TABLE_BASE24 *25 * Must be located in the same page as the DMI table.26 */27 #define VBOX_MPS_TABLE_BASE (VBOX_DMI_TABLE_BASE+VBOX_DMI_TABLE_SIZE)28 29 23 /* Plant DMI table */ 30 24 int FwCommonPlantDMITable(PPDMDEVINS pDevIns, uint8_t *pTable, unsigned cbMax, PCRTUUID pUuid, PCFGMNODE pCfg, uint16_t cCpus, uint16_t *pcbDmiTables, uint16_t *pcNumDmiTables); … … 33 27 /* Plant MPS table */ 34 28 void FwCommonPlantMpsTable(PPDMDEVINS pDevIns, uint8_t *pTable, unsigned cbMax, uint16_t cCpus); 35 void FwCommonPlantMpsFloatPtr(PPDMDEVINS pDevIns );29 void FwCommonPlantMpsFloatPtr(PPDMDEVINS pDevIns, uint32_t u32MpTableAddr); 36 30 37 31 #endif -
trunk/src/VBox/Devices/PC/DevPcBios.cpp
r71820 r73142 1037 1037 PDEVPCBIOS pThis = PDMINS_2_DATA(pDevIns, PDEVPCBIOS); 1038 1038 LogFlow(("pcbiosMemSetup:\n")); 1039 1040 if (pThis->u8IOAPIC)1041 FwCommonPlantMpsFloatPtr(pDevIns);1042 1039 1043 1040 /* … … 1608 1605 if (pThis->u8IOAPIC) 1609 1606 { 1610 FwCommonPlantMpsTable(pDevIns, pThis->au8DMIPage + VBOX_DMI_TABLE_SIZE,1607 FwCommonPlantMpsTable(pDevIns, pThis->au8DMIPage /* aka VBOX_DMI_TABLE_BASE */ + VBOX_DMI_TABLE_SIZE, 1611 1608 _4K - VBOX_DMI_TABLE_SIZE, pThis->cCpus); 1609 FwCommonPlantMpsFloatPtr(pDevIns, VBOX_DMI_TABLE_BASE + VBOX_DMI_TABLE_SIZE); 1612 1610 LogRel(("PcBios: MPS table at %08x\n", VBOX_DMI_TABLE_BASE + VBOX_DMI_TABLE_SIZE)); 1613 1611 }
Note:
See TracChangeset
for help on using the changeset viewer.

