Changeset 23065 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Sep 16, 2009 12:08:42 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 52397
- Location:
- trunk/src/VBox/Runtime/r0drv/nt
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/nt/initterm-r0drv-nt.cpp
r19990 r23065 72 72 * Init the Nt cpu set. 73 73 */ 74 #ifdef IPRT_TARGET_NT4 75 KAFFINITY ActiveProcessors = (UINT64_C(1) << KeNumberProcessors) - UINT64_C(1); 76 #else 74 77 KAFFINITY ActiveProcessors = KeQueryActiveProcessors(); 78 #endif 75 79 RTCpuSetEmpty(&g_rtMpNtCpuSet); 76 80 RTCpuSetFromU64(&g_rtMpNtCpuSet, ActiveProcessors); 77 81 82 #ifdef IPRT_TARGET_NT4 83 g_pfnrtNtExSetTimerResolution = NULL; 84 g_pfnrtNtKeFlushQueuedDpcs = NULL; 85 #else 78 86 /* 79 87 * Initialize the function pointers. … … 85 93 RtlInitUnicodeString(&RoutineName, L"KeFlushQueuedDpcs"); 86 94 g_pfnrtNtKeFlushQueuedDpcs = (PFNMYKEFLUSHQUEUEDDPCS)MmGetSystemRoutineAddress(&RoutineName); 95 #endif 87 96 88 97 /* -
trunk/src/VBox/Runtime/r0drv/nt/memobj-r0drv-nt.cpp
r21497 r23065 671 671 return VERR_NOT_SUPPORTED; 672 672 673 #ifdef IPRT_TARGET_NT4 674 /* NT SP0 can't map to a specific address. */ 675 if (pvFixed != (void *)-1) 676 return VERR_NOT_SUPPORTED; 677 #endif 678 673 679 /* we can't map anything to the first page, sorry. */ 674 680 if (pvFixed == 0) … … 684 690 /** @todo uAlignment */ 685 691 /** @todo How to set the protection on the pages? */ 692 #ifdef IPRT_TARGET_NT4 693 void *pv = MmMapLockedPages(pMemNtToMap->apMdls[0], 694 R0Process == NIL_RTR0PROCESS ? KernelMode : UserMode); 695 #else 686 696 void *pv = MmMapLockedPagesSpecifyCache(pMemNtToMap->apMdls[0], 687 697 R0Process == NIL_RTR0PROCESS ? KernelMode : UserMode, … … 690 700 FALSE /* no bug check on failure */, 691 701 NormalPagePriority); 702 #endif 692 703 if (pv) 693 704 { -
trunk/src/VBox/Runtime/r0drv/nt/mp-r0drv-nt.cpp
r19911 r23065 229 229 #endif 230 230 231 #ifdef IPRT_TARGET_NT4 232 KAFFINITY Mask; 233 /* g_pfnrtNt* do not present on NT anyway. */ 234 return VERR_NOT_SUPPORTED; 235 #else 231 236 KAFFINITY Mask = KeQueryActiveProcessors(); 237 #endif 232 238 233 239 /* KeFlushQueuedDpcs is not present in Windows 2000; import it dynamically so we can just fail this call. */ -
trunk/src/VBox/Runtime/r0drv/nt/time-r0drv-nt.cpp
r9958 r23065 40 40 DECLINLINE(uint64_t) rtTimeGetSystemNanoTS(void) 41 41 { 42 #if 142 #ifndef IPRT_TARGET_NT4 43 43 ULONGLONG InterruptTime = KeQueryInterruptTime(); 44 44 return (uint64_t)InterruptTime * 100; /* The value is in 100ns, convert to ns units. */ … … 83 83 { 84 84 LARGE_INTEGER SystemTime; 85 #if 185 #ifndef IPRT_TARGET_NT4 86 86 KeQuerySystemTime(&SystemTime); 87 87 #else
Note:
See TracChangeset
for help on using the changeset viewer.