VirtualBox

Changeset 3177 in vbox for trunk


Ignore:
Timestamp:
Jun 20, 2007 10:48:41 AM (18 years ago)
Author:
vboxsync
Message:

First check vmmr0.r0 exports and then the builtin support driver exports. Otherwise ring 0 assertions in e.g. the devices module end up on the debug console.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPLib.cpp

    r2981 r3177  
    10211021        pszSymbol += sizeof("SUPR0$") - 1;
    10221022
     1023    /*
     1024     * Check the VMMR0.r0 module if loaded.
     1025     */
     1026    /** @todo call the SUPLoadModule caller.... */
     1027    /** @todo proper reference counting and such. */
     1028    if (g_pvVMMR0 != NIL_RTR0PTR)
     1029    {
     1030        void *pvValue;
     1031        if (!SUPGetSymbolR0((void *)g_pvVMMR0, pszSymbol, &pvValue))
     1032        {
     1033            *pValue = (uintptr_t)pvValue;
     1034            return VINF_SUCCESS;
     1035        }
     1036    }
     1037
    10231038    /* iterate the function table. */
    10241039    int c = g_pFunctions->cFunctions;
     
    10321047        }
    10331048        pFunc++;
    1034     }
    1035 
    1036     /*
    1037      * Check the VMMR0.r0 module if loaded.
    1038      */
    1039     /** @todo call the SUPLoadModule caller.... */
    1040     /** @todo proper reference counting and such. */
    1041     if (g_pvVMMR0 != NIL_RTR0PTR)
    1042     {
    1043         void *pvValue;
    1044         if (!SUPGetSymbolR0((void *)g_pvVMMR0, pszSymbol, &pvValue))
    1045         {
    1046             *pValue = (uintptr_t)pvValue;
    1047             return VINF_SUCCESS;
    1048         }
    10491049    }
    10501050
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