Changeset 34081 in vbox for trunk/src/VBox/Devices/PC
- Timestamp:
- Nov 15, 2010 5:18:30 PM (14 years ago)
- Location:
- trunk/src/VBox/Devices/PC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevPcBios.cpp
r33917 r34081 1282 1282 } 1283 1283 1284 uint64_t cbFileLanBoot ;1284 uint64_t cbFileLanBoot, cbFileLanBootAlign; 1285 1285 const uint8_t *pu8LanBootBinary = NULL; 1286 1286 uint64_t cbLanBootBinary; … … 1299 1299 if (RT_SUCCESS(rc)) 1300 1300 { 1301 if ( RT_ALIGN(cbFileLanBoot, _4K) != cbFileLanBoot1302 || cbFileLanBoot > _64K)1301 cbFileLanBootAlign = RT_ALIGN(cbFileLanBoot, _4K); 1302 if (cbFileLanBootAlign > _64K - (VBOX_LANBOOT_SEG << 4 & 0xffff)) 1303 1303 rc = VERR_TOO_MUCH_DATA; 1304 1304 } … … 1325 1325 * Allocate buffer for the LAN boot ROM data. 1326 1326 */ 1327 pThis->pu8LanBoot = (uint8_t *)PDMDevHlpMMHeapAlloc (pDevIns, cbFileLanBoot);1327 pThis->pu8LanBoot = (uint8_t *)PDMDevHlpMMHeapAllocZ(pDevIns, cbFileLanBootAlign); 1328 1328 if (pThis->pu8LanBoot) 1329 1329 { … … 1358 1358 { 1359 1359 pu8LanBootBinary = pThis->pu8LanBoot; 1360 cbLanBootBinary = cbFileLanBoot ;1360 cbLanBootBinary = cbFileLanBootAlign; 1361 1361 } 1362 1362 1363 1363 /* 1364 1364 * Map the Network Boot ROM into memory. 1365 * Currently there is a fixed mapping: 0x000 c8000 to 0x000cffff contains1366 * the (up to) 32kb ROM image.1365 * Currently there is a fixed mapping: 0x000d2000 to 0x000dffff contains 1366 * the (up to) 56 kb ROM image. 1367 1367 */ 1368 1368 if (pu8LanBootBinary) -
trunk/src/VBox/Devices/PC/DevPcBios.h
r28800 r34081 5 5 6 6 /* 7 * Copyright (C) 2006-20 07Oracle Corporation7 * Copyright (C) 2006-2010 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 20 20 21 21 /** @def VBOX_DMI_TABLE_BASE */ 22 #define VBOX_DMI_TABLE_BASE 23 #define VBOX_DMI_TABLE_VER 24 #define VBOX_DMI_TABLE_ENTR 22 #define VBOX_DMI_TABLE_BASE 0xe1000 23 #define VBOX_DMI_TABLE_VER 0x25 24 #define VBOX_DMI_TABLE_ENTR 5 25 25 26 26 /** def VBOX_DMI_TABLE_SIZE … … 31 31 * the MPS table. 32 32 */ 33 #define VBOX_DMI_TABLE_SIZE 352 34 35 /** @def VBOX_VMI_BIOS_BASE 36 * 37 * Must be located between 0xC0000 and 0xDEFFF, otherwise it will not be 38 * recognized as regular BIOS. 39 */ 40 #define VBOX_VMI_BIOS_BASE 0xdf000 33 #define VBOX_DMI_TABLE_SIZE 352 41 34 42 35 … … 45 38 * Should usually start right after the DMI BIOS page 46 39 */ 47 #define VBOX_LANBOOT_SEG 40 #define VBOX_LANBOOT_SEG 0xe200 48 41 49 #define VBOX_SMBIOS_MAJOR_VER 50 #define VBOX_SMBIOS_MINOR_VER 51 #define VBOX_SMBIOS_MAXSS 42 #define VBOX_SMBIOS_MAJOR_VER 2 43 #define VBOX_SMBIOS_MINOR_VER 5 44 #define VBOX_SMBIOS_MAXSS 0xff /* Not very accurate */ 52 45 53 46 #endif
Note:
See TracChangeset
for help on using the changeset viewer.