VirtualBox

Ignore:
Timestamp:
Aug 29, 2008 9:13:37 AM (16 years ago)
Author:
vboxsync
Message:

SUP: SUPInit(ppSession=NULL, cbReserved=0) -> SUPR3Init(ppSession)

Location:
trunk/src/VBox/HostDrivers/Support
Files:
11 edited

Legend:

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

    r11725 r11794  
    211211
    212212
    213 SUPR3DECL(int) SUPInit(PSUPDRVSESSION *ppSession /* NULL */, size_t cbReserve /* 0 */)
     213SUPR3DECL(int) SUPR3Init(PSUPDRVSESSION *ppSession)
    214214{
    215215    /*
     
    368368        suplibOsTerm(&g_supLibData);
    369369    }
    370     AssertMsgFailed(("SUPInit() failed rc=%Vrc\n", rc));
     370    AssertMsgFailed(("SUPR3Init() failed rc=%Vrc\n", rc));
    371371    g_cInits--;
    372372
     
    485485     * Verify state.
    486486     */
    487     AssertMsg(g_cInits > 0, ("SUPTerm() is called before SUPInit()!\n"));
     487    AssertMsg(g_cInits > 0, ("SUPTerm() is called before SUPR3Init()!\n"));
    488488    if (g_cInits == 0)
    489489        return VERR_WRONG_ORDER;
  • trunk/src/VBox/HostDrivers/Support/SUPLibInternal.h

    r11725 r11794  
    258258 *
    259259 * This is dynamically resolved and invoked by the static library before it
    260  * calls RTR3Init and thereby SUPInit.
     260 * calls RTR3Init and thereby SUPR3Init.
    261261 *
    262262 * @returns IPRT status code.
  • trunk/src/VBox/HostDrivers/Support/SUPR0IdcClient.c

    r10377 r11794  
    9191     * special API feature was just added will they set an actual version.
    9292     * So, this is the place where can easily enforce a minimum IDC version
    93      * on bugs and similar. It corresponds a bit to what SUPInit is
     93     * on bugs and similar. It corresponds a bit to what SUPR3Init is
    9494     * responsible for.
    9595     */
  • trunk/src/VBox/HostDrivers/Support/testcase/tstContiguous.cpp

    r9334 r11794  
    4747
    4848    RTR3Init(false);
    49     rc = SUPInit();
    50     RTPrintf("tstContiguous: SUPInit -> rc=%Vrc\n", rc);
     49    rc = SUPR3Init(NULL);
     50    RTPrintf("tstContiguous: SUPR3Init -> rc=%Vrc\n", rc);
    5151    rcRet += rc != 0;
    5252    if (!rc)
  • trunk/src/VBox/HostDrivers/Support/testcase/tstGIP-2.cpp

    r9961 r11794  
    105105     */
    106106    PSUPDRVSESSION pSession = NIL_RTR0PTR;
    107     int rc = SUPInit(&pSession);
     107    int rc = SUPR3Init(&pSession);
    108108    if (VBOX_SUCCESS(rc))
    109109    {
     
    134134                    if (    g_pSUPGlobalInfoPage->aCPUs[iCpu].u64CpuHz > 0
    135135                        &&  g_pSUPGlobalInfoPage->aCPUs[iCpu].u64CpuHz != _4G + 1)
    136                     {   
     136                    {
    137137                        PSUPGIPCPU pPrevCpu = &s_aaCPUs[!(i & 1)][iCpu];
    138138                        PSUPGIPCPU pCpu = &s_aaCPUs[i & 1][iCpu];
     
    181181    }
    182182    else
    183         RTPrintf("tstGIP-2: SUPInit failed: %Vrc\n", rc);
     183        RTPrintf("tstGIP-2: SUPR3Init failed: %Vrc\n", rc);
    184184    return !!rc;
    185185}
  • trunk/src/VBox/HostDrivers/Support/testcase/tstGetPagingMode.cpp

    r8155 r11794  
    4444    int rc;
    4545    RTR3Init(false);
    46     rc = SUPInit();
     46    rc = SUPR3Init(NULL);
    4747    if (VBOX_SUCCESS(rc))
    4848    {
     
    9393    }
    9494    else
    95         RTPrintf("SUPInit -> rc=%Vrc\n", rc);
     95        RTPrintf("SUPR3Init -> rc=%Vrc\n", rc);
    9696
    9797    return !VBOX_SUCCESS(rc);
  • trunk/src/VBox/HostDrivers/Support/testcase/tstInit.cpp

    r8155 r11794  
    4444    int rc;
    4545    RTR3Init(false);
    46     rc = SUPInit();
    47     RTPrintf("tstInit: SUPInit -> rc=%d\n", rc);
     46    rc = SUPR3Init(NULL);
     47    RTPrintf("tstInit: SUPR3Init -> rc=%d\n", rc);
    4848    if (!rc)
    4949    {
  • trunk/src/VBox/HostDrivers/Support/testcase/tstInt.cpp

    r10724 r11794  
    8181    RTR3Init();
    8282    PSUPDRVSESSION pSession;
    83     rc = SUPInit(&pSession);
     83    rc = SUPR3Init(&pSession);
    8484    rcRet += rc != 0;
    85     RTPrintf("tstInt: SUPInit -> rc=%Vrc\n", rc);
     85    RTPrintf("tstInt: SUPR3Init -> rc=%Vrc\n", rc);
    8686    if (!rc)
    8787    {
  • trunk/src/VBox/HostDrivers/Support/testcase/tstLow.cpp

    r8155 r11794  
    5050    RTPrintf("tstLow: TESTING...\n");
    5151
    52     rc = SUPInit();
     52    rc = SUPR3Init(NULL);
    5353    if (VBOX_SUCCESS(rc))
    5454    {
     
    151151    else
    152152    {
    153         RTPrintf("SUPInit -> rc=%Vrc\n", rc);
     153        RTPrintf("SUPR3Init -> rc=%Vrc\n", rc);
    154154        rcRet++;
    155155    }
  • trunk/src/VBox/HostDrivers/Support/testcase/tstPage.cpp

    r8155 r11794  
    4646    int rc = 0;
    4747    RTR3Init(true, _1M*168);
    48     rc = SUPInit(NULL, _1M*168);
     48    rc = SUPR3Init(NULL);
    4949    cErrors += rc != 0;
    5050    if (!rc)
     
    8787    }
    8888    else
    89         RTPrintf("tstPage: SUPInit failed rc=%d\n", rc);
     89        RTPrintf("tstPage: SUPR3Init failed rc=%d\n", rc);
    9090
    9191    if (!cErrors)
  • trunk/src/VBox/HostDrivers/Support/testcase/tstPin.cpp

    r8155 r11794  
    4949
    5050    RTR3Init(true, ~0);
    51     rc = SUPInit(NULL, ~0);
    52     RTPrintf("SUPInit -> rc=%d\n", rc);
     51    rc = SUPR3Init(NULL);
     52    RTPrintf("SUPR3Init -> rc=%d\n", rc);
    5353    rcRet += rc != 0;
    5454    if (!rc)
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