Changeset 73142 in vbox for trunk/src/VBox/Devices/PC
- Timestamp:
- Jul 16, 2018 9:09:38 AM (7 years ago)
- Location:
- trunk/src/VBox/Devices/PC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
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.