Changeset 25528 in vbox for trunk/src/VBox/HostDrivers/Support/SUPLib.cpp
- Timestamp:
- Dec 20, 2009 11:24:59 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPLib.cpp
r25278 r25528 272 272 strcpy(CookieReq.u.In.szMagic, SUPCOOKIE_MAGIC); 273 273 CookieReq.u.In.u32ReqVersion = SUPDRV_IOC_VERSION; 274 const uint32_t uMinVersion = (SUPDRV_IOC_VERSION & 0xffff0000) == 0x001 20000275 ? 0x001 20000274 const uint32_t uMinVersion = (SUPDRV_IOC_VERSION & 0xffff0000) == 0x00140000 275 ? 0x00140000 276 276 : SUPDRV_IOC_VERSION & 0xffff0000; 277 277 CookieReq.u.In.u32MinVersion = uMinVersion; … … 464 464 { "RTLogLoggerEx", 0xefef003f }, 465 465 { "RTLogLoggerExV", 0xefef0040 }, 466 { "AssertMsg1", 0xefef0041 }, 467 { "AssertMsg2", 0xefef0042 }, 468 { "RTAssertMsg1", 0xefef0043 }, 469 { "RTAssertMsg2", 0xefef0044 }, 470 { "RTAssertMsg2V", 0xefef0045 }, 471 { "SUPR0QueryVTCaps", 0xefef0046 }, 466 { "RTAssertMsg1", 0xefef0041 }, 467 { "RTAssertMsg2", 0xefef0042 }, 468 { "RTAssertMsg2V", 0xefef0043 }, 469 { "SUPR0QueryVTCaps", 0xefef0044 }, 472 470 }; 473 471 … … 1564 1562 while (c-- > 0) 1565 1563 { 1566 AssertMsg2("%d: %s\n", g_pFunctions->u.Out.cFunctions - c, pFunc->szName);1564 RTAssertMsg2Weak("%d: %s\n", g_pFunctions->u.Out.cFunctions - c, pFunc->szName); 1567 1565 pFunc++; 1568 1566 } 1569 1567 1570 AssertMsg2("%s is importing %s which we couldn't find\n", pvUser, pszSymbol);1568 RTAssertMsg2Weak("%s is importing %s which we couldn't find\n", pvUser, pszSymbol); 1571 1569 AssertMsgFailed(("%s is importing %s which we couldn't find\n", pvUser, pszSymbol)); 1572 1570 if (g_u32FakeMode) … … 1722 1720 * Get the image bits. 1723 1721 */ 1724 rc = RTLdrGetBits(hLdrMod, &pLoadReq->u.In.a chImage[0], (uintptr_t)OpenReq.u.Out.pvImageBase,1722 rc = RTLdrGetBits(hLdrMod, &pLoadReq->u.In.abImage[0], (uintptr_t)OpenReq.u.Out.pvImageBase, 1725 1723 supLoadModuleResolveImport, (void *)pszModule); 1726 1724 … … 1738 1736 if (fIsVMMR0) 1739 1737 { 1740 rc = RTLdrGetSymbolEx(hLdrMod, &pLoadReq->u.In.a chImage[0], (uintptr_t)OpenReq.u.Out.pvImageBase, "VMMR0EntryInt", &VMMR0EntryInt);1738 rc = RTLdrGetSymbolEx(hLdrMod, &pLoadReq->u.In.abImage[0], (uintptr_t)OpenReq.u.Out.pvImageBase, "VMMR0EntryInt", &VMMR0EntryInt); 1741 1739 if (RT_SUCCESS(rc)) 1742 rc = RTLdrGetSymbolEx(hLdrMod, &pLoadReq->u.In.a chImage[0], (uintptr_t)OpenReq.u.Out.pvImageBase, "VMMR0EntryFast", &VMMR0EntryFast);1740 rc = RTLdrGetSymbolEx(hLdrMod, &pLoadReq->u.In.abImage[0], (uintptr_t)OpenReq.u.Out.pvImageBase, "VMMR0EntryFast", &VMMR0EntryFast); 1743 1741 if (RT_SUCCESS(rc)) 1744 rc = RTLdrGetSymbolEx(hLdrMod, &pLoadReq->u.In.a chImage[0], (uintptr_t)OpenReq.u.Out.pvImageBase, "VMMR0EntryEx", &VMMR0EntryEx);1742 rc = RTLdrGetSymbolEx(hLdrMod, &pLoadReq->u.In.abImage[0], (uintptr_t)OpenReq.u.Out.pvImageBase, "VMMR0EntryEx", &VMMR0EntryEx); 1745 1743 } 1746 1744 else if (pszSrvReqHandler) 1747 rc = RTLdrGetSymbolEx(hLdrMod, &pLoadReq->u.In.a chImage[0], (uintptr_t)OpenReq.u.Out.pvImageBase, pszSrvReqHandler, &SrvReqHandler);1745 rc = RTLdrGetSymbolEx(hLdrMod, &pLoadReq->u.In.abImage[0], (uintptr_t)OpenReq.u.Out.pvImageBase, pszSrvReqHandler, &SrvReqHandler); 1748 1746 if (RT_SUCCESS(rc)) 1749 1747 { 1750 int rc2 = RTLdrGetSymbolEx(hLdrMod, &pLoadReq->u.In.a chImage[0], (uintptr_t)OpenReq.u.Out.pvImageBase, "ModuleInit", &ModuleInit);1748 int rc2 = RTLdrGetSymbolEx(hLdrMod, &pLoadReq->u.In.abImage[0], (uintptr_t)OpenReq.u.Out.pvImageBase, "ModuleInit", &ModuleInit); 1751 1749 if (RT_FAILURE(rc2)) 1752 1750 ModuleInit = 0; 1753 1751 1754 rc2 = RTLdrGetSymbolEx(hLdrMod, &pLoadReq->u.In.a chImage[0], (uintptr_t)OpenReq.u.Out.pvImageBase, "ModuleTerm", &ModuleTerm);1752 rc2 = RTLdrGetSymbolEx(hLdrMod, &pLoadReq->u.In.abImage[0], (uintptr_t)OpenReq.u.Out.pvImageBase, "ModuleTerm", &ModuleTerm); 1755 1753 if (RT_FAILURE(rc2)) 1756 1754 ModuleTerm = 0; … … 1763 1761 SUPLDRCREATETABSARGS CreateArgs; 1764 1762 CreateArgs.cbImage = CalcArgs.cbImage; 1765 CreateArgs.pSym = (PSUPLDRSYM)&pLoadReq->u.In.a chImage[offSymTab];1766 CreateArgs.pszBase = (char *)&pLoadReq->u.In.a chImage[offStrTab];1763 CreateArgs.pSym = (PSUPLDRSYM)&pLoadReq->u.In.abImage[offSymTab]; 1764 CreateArgs.pszBase = (char *)&pLoadReq->u.In.abImage[offStrTab]; 1767 1765 CreateArgs.psz = CreateArgs.pszBase; 1768 1766 rc = RTLdrEnumSymbols(hLdrMod, 0, NULL, 0, supLoadModuleCreateTabsCB, &CreateArgs); … … 1770 1768 { 1771 1769 AssertRelease((size_t)(CreateArgs.psz - CreateArgs.pszBase) <= CalcArgs.cbStrings); 1772 AssertRelease((size_t)(CreateArgs.pSym - (PSUPLDRSYM)&pLoadReq->u.In.a chImage[offSymTab]) <= CalcArgs.cSymbols);1770 AssertRelease((size_t)(CreateArgs.pSym - (PSUPLDRSYM)&pLoadReq->u.In.abImage[offSymTab]) <= CalcArgs.cSymbols); 1773 1771 1774 1772 /*
Note:
See TracChangeset
for help on using the changeset viewer.