Changeset 34169 in vbox for trunk/src/VBox/Devices/PC
- Timestamp:
- Nov 18, 2010 1:09:35 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevPcBios.cpp
r34164 r34169 1282 1282 } 1283 1283 1284 uint64_t cbFileLanBoot , cbFileLanBootAlign;1284 uint64_t cbFileLanBoot; 1285 1285 const uint8_t *pu8LanBootBinary = NULL; 1286 1286 uint64_t cbLanBootBinary; … … 1299 1299 if (RT_SUCCESS(rc)) 1300 1300 { 1301 cbFileLanBootAlign = RT_ALIGN(cbFileLanBoot, _4K); 1302 if (cbFileLanBootAlign > _64K - (VBOX_LANBOOT_SEG << 4 & 0xffff)) 1301 if (cbFileLanBoot > _64K - (VBOX_LANBOOT_SEG << 4 & 0xffff)) 1303 1302 rc = VERR_TOO_MUCH_DATA; 1304 1303 } … … 1325 1324 * Allocate buffer for the LAN boot ROM data. 1326 1325 */ 1327 pThis->pu8LanBoot = (uint8_t *)PDMDevHlpMMHeapAllocZ(pDevIns, cbFileLanBoot Align);1326 pThis->pu8LanBoot = (uint8_t *)PDMDevHlpMMHeapAllocZ(pDevIns, cbFileLanBoot); 1328 1327 if (pThis->pu8LanBoot) 1329 1328 { … … 1358 1357 { 1359 1358 pu8LanBootBinary = pThis->pu8LanBoot; 1360 cbLanBootBinary = cbFileLanBoot Align;1359 cbLanBootBinary = cbFileLanBoot; 1361 1360 } 1362 1361 … … 1371 1370 pThis->cbLanBoot = cbLanBootBinary; 1372 1371 1373 rc = PDMDevHlpROMRegister(pDevIns, VBOX_LANBOOT_SEG << 4, RT_MAX(cbLanBootBinary, 56*_1K),1372 rc = PDMDevHlpROMRegister(pDevIns, VBOX_LANBOOT_SEG << 4, RT_MAX(cbLanBootBinary, _64K - (VBOX_LANBOOT_SEG << 4 & 0xffff)), 1374 1373 pu8LanBootBinary, cbLanBootBinary, 1375 1374 PGMPHYS_ROM_FLAGS_SHADOWED, "Net Boot ROM");
Note:
See TracChangeset
for help on using the changeset viewer.