VirtualBox

Changeset 80542 in vbox


Ignore:
Timestamp:
Sep 2, 2019 7:56:13 AM (5 years ago)
Author:
vboxsync
Message:

VMM: Fix for problem loading VBoxEhciR0.r0 after PDM device refactoring. bugref:9218

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/pdmapi.h

    r80534 r80542  
    132132VMMR3DECL(int)          PDMR3LdrEnumModules(PVM pVM, PFNPDMR3ENUM pfnCallback, void *pvArg);
    133133VMMR3_INT_DECL(void)    PDMR3LdrRelocateU(PUVM pUVM, RTGCINTPTR offDelta);
    134 VMMR3_INT_DECL(int)     PDMR3LdrLoadR0(PUVM pUVM, const char *pszModule);
     134VMMR3_INT_DECL(int)     PDMR3LdrLoadR0(PUVM pUVM, const char *pszModule, const char *pszSearchPath);
    135135VMMR3_INT_DECL(int)     PDMR3LdrGetSymbolR3(PVM pVM, const char *pszModule, const char *pszSymbol, void **ppvValue);
    136136VMMR3DECL(int)          PDMR3LdrGetSymbolR0(PVM pVM, const char *pszModule, const char *pszSymbol, PRTR0PTR ppvValue);
  • trunk/src/VBox/VMM/VMMR3/PDMDevice.cpp

    r80531 r80542  
    333333            AssertLogRel(fR0Enabled /* not possible to just enabled raw-mode atm. */);
    334334
    335             rc = PDMR3LdrLoadR0(pVM->pUVM, pReg->pszR0Mod);
     335            rc = PDMR3LdrLoadR0(pVM->pUVM, pReg->pszR0Mod, paDevs[i].pDev->pszR0SearchPath);
    336336            if (RT_FAILURE(rc))
    337337                return VMR3SetError(pVM->pUVM, rc, RT_SRC_POS, "Failed to load ring-0 module '%s' for device '%s'",
  • trunk/src/VBox/VMM/VMMR3/PDMLdr.cpp

    r80533 r80542  
    744744 * @param   pUVM            Pointer to the user mode VM structure.
    745745 * @param   pszModule       Module name (no path).
    746  */
    747 VMMR3_INT_DECL(int) PDMR3LdrLoadR0(PUVM pUVM, const char *pszModule)
     746 * @param   pszSearchPath   List of directories to search for the module
     747 *                          (assumes @a pszModule is also a filename).
     748 */
     749VMMR3_INT_DECL(int) PDMR3LdrLoadR0(PUVM pUVM, const char *pszModule, const char *pszSearchPath)
    748750{
    749751    /*
     
    765767     * Okay, load it.
    766768     */
    767     return pdmR3LoadR0U(pUVM, NULL, pszModule, NULL);
     769    return pdmR3LoadR0U(pUVM, NULL, pszModule, pszSearchPath);
    768770}
    769771
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette