Changeset 41498 in vbox for trunk/src/VBox
- Timestamp:
- May 30, 2012 2:49:23 PM (13 years ago)
- Location:
- trunk/src/VBox/Devices/PC/BIOS-new
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/BIOS-new/MakeDebianBiosAssembly.cpp
r41496 r41498 344 344 static bool disStringData(uint32_t uFlatAddr, uint32_t cb) 345 345 { 346 uint8_t const *pb = &g_pbImg[uFlatAddr - VBOX_BIOS_BASE];347 size_tcchOnLine = 0;346 uint8_t const *pb = &g_pbImg[uFlatAddr - VBOX_BIOS_BASE]; 347 uint32_t cchOnLine = 0; 348 348 while (cb > 0) 349 349 { … … 416 416 { 417 417 uint8_t const *pb = &g_pbImg[uFlatAddr - VBOX_BIOS_BASE]; 418 size_tcchOnLine = 0;418 uint32_t cchOnLine = 0; 419 419 uint8_t bPrev = 255; 420 420 while (cb > 0) … … 864 864 && ASMMemIsAll8(pb, RT_MIN(cb, 8), 0) == NULL) 865 865 { 866 void *pv = ASMMemIsAll8(pb, cb, 0);867 size_t cbZeros = pv ? (uint8_t const *)pv - pb: cb;866 void *pv = ASMMemIsAll8(pb, cb, 0); 867 uint32_t cbZeros = pv ? (uint32_t)((uint8_t const *)pv - pb) : cb; 868 868 if (!outputPrintf(" times %#x db 0\n", cbZeros)) 869 869 return false; … … 1079 1079 } 1080 1080 pMap->iLine++; 1081 pMap->cch = strlen(pMap->szLine);1081 pMap->cch = (uint32_t)strlen(pMap->szLine); 1082 1082 1083 1083 /* Check out leading white space. */ … … 1394 1394 || psz[cch - 1] != '+' 1395 1395 ) 1396 return RTMsgErrorExit(RTEXITCODE_FAILURE, "%s:%d: Expected section box: +-----...", pMap->pszMapFile, pMap->iLine); 1396 { 1397 RTMsgError("%s:%d: Expected section box: +-----...", pMap->pszMapFile, pMap->iLine); 1398 return false; 1399 } 1397 1400 1398 1401 /* There may be a few lines describing the table notation now, surrounded by blank lines. */ … … 1480 1483 uint32_t iSeg = g_cSegs; 1481 1484 if (iSeg >= RT_ELEMENTS(g_aSegs)) 1482 return RTMsgErrorExit(RTEXITCODE_FAILURE, "%s:%u: Too many segments", pMap->pszMapFile, pMap->iLine); 1485 { 1486 RTMsgError("%s:%u: Too many segments", pMap->pszMapFile, pMap->iLine); 1487 return false; 1488 } 1483 1489 1484 1490 char *psz = pMap->szLine; -
trunk/src/VBox/Devices/PC/BIOS-new/Makefile.kmk
r41496 r41498 98 98 PROGRAMS += MakeDebianBiosAssembly ## TODO this is build program, really. later. 99 99 MakeDebianBiosAssembly_TEMPLATE = VBOXR3EXE 100 MakeDebianBiosAssembly_SOURCES = MakeDebianBiosAssembly.cpp 101 MakeDebianBiosAssembly_LIBS = \ 100 MakeDebianBiosAssembly_DEFS = IN_DIS 101 MakeDebianBiosAssembly_SOURCES = MakeDebianBiosAssembly.cpp 102 MakeDebianBiosAssembly_LIBS = \ 102 103 $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB) \ 103 104 $(LIB_RUNTIME)
Note:
See TracChangeset
for help on using the changeset viewer.