Changeset 28203 in vbox
- Timestamp:
- Apr 12, 2010 12:58:12 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 59943
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/DevEFI.cpp
r27122 r28203 474 474 pThis->szPanicMsg[0] = '\0'; 475 475 476 /* Plant DMI and MPS tables */477 rc = FwCommonPlantDMITable(pDevIns,478 pThis->au8DMIPage,479 VBOX_DMI_TABLE_SIZE,480 &pThis->aUuid,481 pDevIns->pCfg,482 /*fPutSmbiosHeaders=*/true);483 Assert(RT_SUCCESS(rc));484 485 476 if (pThis->u8IOAPIC) 486 FwCommonPlantMpsTable(pDevIns, 487 pThis->au8DMIPage + VBOX_DMI_TABLE_SIZE, 488 _4K - VBOX_DMI_TABLE_SIZE, 489 pThis->cCpus); 490 rc = PDMDevHlpROMRegister(pDevIns, VBOX_DMI_TABLE_BASE, _4K, pThis->au8DMIPage, 491 PGMPHYS_ROM_FLAGS_PERMANENT_BINARY, "DMI tables"); 492 493 Assert(RT_SUCCESS(rc)); 477 FwCommonPlantMpsFloatPtr(pDevIns); 494 478 495 479 /* … … 1150 1134 pThis->u64FsbFrequency = pThis->u64TscFrequency / 4; 1151 1135 pThis->u64CpuFrequency = pThis->u64TscFrequency; 1136 1152 1137 /* 1153 1138 * GOP graphics … … 1159 1144 pThis->u32GopMode = 2; /* 1024x768 */ 1160 1145 } 1146 1161 1147 /* 1162 1148 * Uga graphics … … 1202 1188 return rc; 1203 1189 1190 /* 1191 * Plant DMI and MPS tables 1192 */ 1193 rc = FwCommonPlantDMITable(pDevIns, 1194 pThis->au8DMIPage, 1195 VBOX_DMI_TABLE_SIZE, 1196 &pThis->aUuid, 1197 pDevIns->pCfg, 1198 true /*fPutSmbiosHeaders*/); 1199 AssertRCReturn(rc, rc); 1200 if (pThis->u8IOAPIC) 1201 FwCommonPlantMpsTable(pDevIns, 1202 pThis->au8DMIPage + VBOX_DMI_TABLE_SIZE, 1203 _4K - VBOX_DMI_TABLE_SIZE, 1204 pThis->cCpus); 1205 rc = PDMDevHlpROMRegister(pDevIns, VBOX_DMI_TABLE_BASE, _4K, pThis->au8DMIPage, 1206 PGMPHYS_ROM_FLAGS_PERMANENT_BINARY, "DMI tables"); 1207 1208 AssertRCReturn(rc, rc); 1204 1209 1205 1210 /* -
trunk/src/VBox/Devices/PC/DevFwCommon.cpp
r27363 r28203 710 710 711 711 /** 712 * Construct the MPS table. Only applicable if IOAPIC is active! 712 * Construct the MPS table for implanting as a ROM page. 713 * 714 * Only applicable if IOAPIC is active! 713 715 * 714 716 * See ``MultiProcessor Specificatiton Version 1.4 (May 1997)'': … … 850 852 ("VBOX_MPS_TABLE_SIZE=%d, maximum allowed size is %d", 851 853 pCfgTab->u16Length, cbMax)); 852 854 } 855 856 /** 857 * Construct the MPS table pointer at VM construction and reset. 858 * 859 * Only applicable if IOAPIC is active! 860 * 861 * @param pDevIns The device instance data. 862 */ 863 void FwCommonPlantMpsFloatPtr(PPDMDEVINS pDevIns) 864 { 853 865 MPSFLOATPTR floatPtr; 854 866 floatPtr.au8Signature[0] = '_'; … … 866 878 floatPtr.au8Feature[4] = 0; 867 879 floatPtr.u8Checksum = fwCommonChecksum((uint8_t*)&floatPtr, 16); 868 PDMDevHlpPhysWrite 880 PDMDevHlpPhysWrite(pDevIns, 0x9fff0, &floatPtr, 16); 869 881 } 882 -
trunk/src/VBox/Devices/PC/DevFwCommon.h
r26728 r28203 37 37 /* Plant MPS table */ 38 38 void FwCommonPlantMpsTable(PPDMDEVINS pDevIns, uint8_t *pTable, unsigned cbMax, uint16_t cCpus); 39 void FwCommonPlantMpsFloatPtr(PPDMDEVINS pDevIns); 39 40 40 41 #endif -
trunk/src/VBox/Devices/PC/DevPcBios.cpp
r27976 r28203 769 769 770 770 if (pThis->u8IOAPIC) 771 FwCommonPlantMpsTable(pDevIns, pThis->au8DMIPage + VBOX_DMI_TABLE_SIZE, 772 _4K - VBOX_DMI_TABLE_SIZE, pThis->cCpus); 771 FwCommonPlantMpsFloatPtr(pDevIns); 773 772 774 773 /*
Note:
See TracChangeset
for help on using the changeset viewer.