Changeset 63063 in vbox
- Timestamp:
- Aug 5, 2016 9:14:33 PM (8 years ago)
- Location:
- trunk/src/VBox/Runtime
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/nt/memobj-r0drv-nt.cpp
r62663 r63063 523 523 return VERR_NO_MEMORY; 524 524 #else /* IPRT_TARGET_NT4 */ 525 RT_NOREF(ppMem, cb, PhysHighest); 525 526 return VERR_NOT_SUPPORTED; 526 527 #endif /* IPRT_TARGET_NT4 */ -
trunk/src/VBox/Runtime/r0drv/nt/mp-r0drv-nt.cpp
r62663 r63063 374 374 RT_NT_CPUID enmCpuid, RTCPUID idCpu, RTCPUID idCpu2, uint32_t *pcHits) 375 375 { 376 #ifdef IPRT_TARGET_NT4 377 RT_NOREF(pfnWorker, pvUser1, pvUser2, enmCpuid, idCpu, idCpu2, pcHits); 378 /* g_pfnrtNt* are not present on NT anyway. */ 379 return VERR_NOT_SUPPORTED; 380 381 #else /* !IPRT_TARGET_NT4 */ 376 382 PRTMPARGS pArgs; 377 383 KDPC *paExecCpuDpcs; 378 384 379 # if 0385 # if 0 380 386 /* KeFlushQueuedDpcs must be run at IRQL PASSIVE_LEVEL according to MSDN, but the 381 387 * driver verifier doesn't complain... 382 388 */ 383 389 AssertMsg(KeGetCurrentIrql() == PASSIVE_LEVEL, ("%d != %d (PASSIVE_LEVEL)\n", KeGetCurrentIrql(), PASSIVE_LEVEL)); 384 #endif 385 386 #ifdef IPRT_TARGET_NT4 387 KAFFINITY Mask; 388 /* g_pfnrtNt* are not present on NT anyway. */ 389 return VERR_NOT_SUPPORTED; 390 #else 390 # endif 391 391 392 KAFFINITY Mask = KeQueryActiveProcessors(); 392 #endif393 393 394 394 /* KeFlushQueuedDpcs is not present in Windows 2000; import it dynamically so we can just fail this call. */ … … 505 505 506 506 return VINF_SUCCESS; 507 #endif /* */ 507 508 } 508 509 -
trunk/src/VBox/Runtime/r0drv/nt/timer-r0drv-nt.cpp
r62663 r63063 130 130 InterruptTime.HighPart = ((KUSER_SHARED_DATA volatile *)SharedUserData)->InterruptTime.High1Time; 131 131 InterruptTime.LowPart = ((KUSER_SHARED_DATA volatile *)SharedUserData)->InterruptTime.LowPart; 132 } while (((KUSER_SHARED_DATA volatile *)SharedUserData)->InterruptTime.High2Time != InterruptTime.HighPart);132 } while (((KUSER_SHARED_DATA volatile *)SharedUserData)->InterruptTime.High2Time != (LONG)InterruptTime.HighPart); 133 133 return InterruptTime.QuadPart; 134 134 # endif -
trunk/src/VBox/Runtime/testcase/tstLdr-3.cpp
r62724 r63063 263 263 MyDisBlock(enmDisCpuMode, (uintptr_t)pbCode, 264 264 RT_MAX(NearSym.aSyms[1].Value - NearSym.aSyms[0].Value, 0x20000), 265 NearSym.aSyms[0].Value - ( RTUINTPTR)pbCode,265 NearSym.aSyms[0].Value - (uintptr_t)pbCode, 266 266 NearSym.aSyms[0].Value, 267 267 NearSym.Addr); -
trunk/src/VBox/Runtime/testcase/tstRTStrFormat.cpp
r62477 r63063 473 473 } 474 474 475 if (sizeof(RTCCUINTREG) == 8) 476 { 477 CHECK42("%RTreg", (RTCCUINTREG)0, "0000000000000000"); 478 CHECK42("%RTreg", ~(RTCCUINTREG)0, "ffffffffffffffff"); 479 CHECK42("%RTreg", (RTCCUINTREG)0x84342134, "0000000084342134"); 480 CHECK42("%RTreg", (RTCCUINTREG)0x23484342134ULL, "0000023484342134"); 481 } 482 else 483 { 484 CHECK42("%RTreg", (RTCCUINTREG)0, "00000000"); 485 CHECK42("%RTreg", ~(RTCCUINTREG)0, "ffffffff"); 486 CHECK42("%RTreg", (RTCCUINTREG)0x84342134, "84342134"); 487 } 475 #if ARCH_BITS == 64 476 AssertCompileSize(RTCCUINTREG, 8); 477 CHECK42("%RTreg", (RTCCUINTREG)0, "0000000000000000"); 478 CHECK42("%RTreg", ~(RTCCUINTREG)0, "ffffffffffffffff"); 479 CHECK42("%RTreg", (RTCCUINTREG)0x84342134, "0000000084342134"); 480 CHECK42("%RTreg", (RTCCUINTREG)0x23484342134ULL, "0000023484342134"); 481 #elif ARCH_BITS == 32 482 AssertCompileSize(RTCCUINTREG, 4); 483 CHECK42("%RTreg", (RTCCUINTREG)0, "00000000"); 484 CHECK42("%RTreg", ~(RTCCUINTREG)0, "ffffffff"); 485 CHECK42("%RTreg", (RTCCUINTREG)0x84342134, "84342134"); 486 #else 487 # error ARCH_BITS 488 #endif 488 489 489 490 CHECK42("%RTsel", (RTSEL)0x543, "0543");
Note:
See TracChangeset
for help on using the changeset viewer.