Changeset 11794 in vbox for trunk/src/VBox/HostDrivers/Support
- Timestamp:
- Aug 29, 2008 9:13:37 AM (16 years ago)
- Location:
- trunk/src/VBox/HostDrivers/Support
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPLib.cpp
r11725 r11794 211 211 212 212 213 SUPR3DECL(int) SUP Init(PSUPDRVSESSION *ppSession /* NULL */, size_t cbReserve /* 0 */)213 SUPR3DECL(int) SUPR3Init(PSUPDRVSESSION *ppSession) 214 214 { 215 215 /* … … 368 368 suplibOsTerm(&g_supLibData); 369 369 } 370 AssertMsgFailed(("SUP Init() failed rc=%Vrc\n", rc));370 AssertMsgFailed(("SUPR3Init() failed rc=%Vrc\n", rc)); 371 371 g_cInits--; 372 372 … … 485 485 * Verify state. 486 486 */ 487 AssertMsg(g_cInits > 0, ("SUPTerm() is called before SUP Init()!\n"));487 AssertMsg(g_cInits > 0, ("SUPTerm() is called before SUPR3Init()!\n")); 488 488 if (g_cInits == 0) 489 489 return VERR_WRONG_ORDER; -
trunk/src/VBox/HostDrivers/Support/SUPLibInternal.h
r11725 r11794 258 258 * 259 259 * This is dynamically resolved and invoked by the static library before it 260 * calls RTR3Init and thereby SUP Init.260 * calls RTR3Init and thereby SUPR3Init. 261 261 * 262 262 * @returns IPRT status code. -
trunk/src/VBox/HostDrivers/Support/SUPR0IdcClient.c
r10377 r11794 91 91 * special API feature was just added will they set an actual version. 92 92 * So, this is the place where can easily enforce a minimum IDC version 93 * on bugs and similar. It corresponds a bit to what SUP Init is93 * on bugs and similar. It corresponds a bit to what SUPR3Init is 94 94 * responsible for. 95 95 */ -
trunk/src/VBox/HostDrivers/Support/testcase/tstContiguous.cpp
r9334 r11794 47 47 48 48 RTR3Init(false); 49 rc = SUP Init();50 RTPrintf("tstContiguous: SUP Init -> rc=%Vrc\n", rc);49 rc = SUPR3Init(NULL); 50 RTPrintf("tstContiguous: SUPR3Init -> rc=%Vrc\n", rc); 51 51 rcRet += rc != 0; 52 52 if (!rc) -
trunk/src/VBox/HostDrivers/Support/testcase/tstGIP-2.cpp
r9961 r11794 105 105 */ 106 106 PSUPDRVSESSION pSession = NIL_RTR0PTR; 107 int rc = SUP Init(&pSession);107 int rc = SUPR3Init(&pSession); 108 108 if (VBOX_SUCCESS(rc)) 109 109 { … … 134 134 if ( g_pSUPGlobalInfoPage->aCPUs[iCpu].u64CpuHz > 0 135 135 && g_pSUPGlobalInfoPage->aCPUs[iCpu].u64CpuHz != _4G + 1) 136 { 136 { 137 137 PSUPGIPCPU pPrevCpu = &s_aaCPUs[!(i & 1)][iCpu]; 138 138 PSUPGIPCPU pCpu = &s_aaCPUs[i & 1][iCpu]; … … 181 181 } 182 182 else 183 RTPrintf("tstGIP-2: SUP Init failed: %Vrc\n", rc);183 RTPrintf("tstGIP-2: SUPR3Init failed: %Vrc\n", rc); 184 184 return !!rc; 185 185 } -
trunk/src/VBox/HostDrivers/Support/testcase/tstGetPagingMode.cpp
r8155 r11794 44 44 int rc; 45 45 RTR3Init(false); 46 rc = SUP Init();46 rc = SUPR3Init(NULL); 47 47 if (VBOX_SUCCESS(rc)) 48 48 { … … 93 93 } 94 94 else 95 RTPrintf("SUP Init -> rc=%Vrc\n", rc);95 RTPrintf("SUPR3Init -> rc=%Vrc\n", rc); 96 96 97 97 return !VBOX_SUCCESS(rc); -
trunk/src/VBox/HostDrivers/Support/testcase/tstInit.cpp
r8155 r11794 44 44 int rc; 45 45 RTR3Init(false); 46 rc = SUP Init();47 RTPrintf("tstInit: SUP Init -> rc=%d\n", rc);46 rc = SUPR3Init(NULL); 47 RTPrintf("tstInit: SUPR3Init -> rc=%d\n", rc); 48 48 if (!rc) 49 49 { -
trunk/src/VBox/HostDrivers/Support/testcase/tstInt.cpp
r10724 r11794 81 81 RTR3Init(); 82 82 PSUPDRVSESSION pSession; 83 rc = SUP Init(&pSession);83 rc = SUPR3Init(&pSession); 84 84 rcRet += rc != 0; 85 RTPrintf("tstInt: SUP Init -> rc=%Vrc\n", rc);85 RTPrintf("tstInt: SUPR3Init -> rc=%Vrc\n", rc); 86 86 if (!rc) 87 87 { -
trunk/src/VBox/HostDrivers/Support/testcase/tstLow.cpp
r8155 r11794 50 50 RTPrintf("tstLow: TESTING...\n"); 51 51 52 rc = SUP Init();52 rc = SUPR3Init(NULL); 53 53 if (VBOX_SUCCESS(rc)) 54 54 { … … 151 151 else 152 152 { 153 RTPrintf("SUP Init -> rc=%Vrc\n", rc);153 RTPrintf("SUPR3Init -> rc=%Vrc\n", rc); 154 154 rcRet++; 155 155 } -
trunk/src/VBox/HostDrivers/Support/testcase/tstPage.cpp
r8155 r11794 46 46 int rc = 0; 47 47 RTR3Init(true, _1M*168); 48 rc = SUP Init(NULL, _1M*168);48 rc = SUPR3Init(NULL); 49 49 cErrors += rc != 0; 50 50 if (!rc) … … 87 87 } 88 88 else 89 RTPrintf("tstPage: SUP Init failed rc=%d\n", rc);89 RTPrintf("tstPage: SUPR3Init failed rc=%d\n", rc); 90 90 91 91 if (!cErrors) -
trunk/src/VBox/HostDrivers/Support/testcase/tstPin.cpp
r8155 r11794 49 49 50 50 RTR3Init(true, ~0); 51 rc = SUP Init(NULL, ~0);52 RTPrintf("SUP Init -> rc=%d\n", rc);51 rc = SUPR3Init(NULL); 52 RTPrintf("SUPR3Init -> rc=%d\n", rc); 53 53 rcRet += rc != 0; 54 54 if (!rc)
Note:
See TracChangeset
for help on using the changeset viewer.