Changeset 20124 in vbox
- Timestamp:
- May 28, 2009 3:40:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 12 edited
- 1 copied
-
include/iprt/thread.h (modified) (1 diff)
-
src/VBox/HostDrivers/Support/SUPDrv.c (modified) (2 diffs)
-
src/VBox/HostDrivers/Support/SUPDrvIOC.h (modified) (1 diff)
-
src/VBox/HostDrivers/Support/SUPLib.cpp (modified) (1 diff)
-
src/VBox/HostDrivers/Support/win/SUPDrvA-win.asm (modified) (1 diff)
-
src/VBox/Runtime/Makefile.kmk (modified) (1 diff)
-
src/VBox/Runtime/r0drv/darwin/threadpreempt-r0drv-darwin.cpp (modified) (1 diff)
-
src/VBox/Runtime/r0drv/generic/RTThreadPreemptIsPendingTrusty-r0drv-generic.cpp (copied) (copied from trunk/src/VBox/Runtime/r0drv/generic/RTThreadPreemptIsPending-r0drv-generic.cpp ) (2 diffs)
-
src/VBox/Runtime/r0drv/linux/thread-r0drv-linux.c (modified) (1 diff)
-
src/VBox/Runtime/r0drv/nt/thread-r0drv-nt.cpp (modified) (1 diff)
-
src/VBox/Runtime/r0drv/os2/thread-r0drv-os2.cpp (modified) (1 diff)
-
src/VBox/Runtime/r0drv/solaris/thread-r0drv-solaris.c (modified) (1 diff)
-
src/VBox/Runtime/r0drv/solaris/vbi/thread-r0drv-solaris.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/thread.h
r20008 r20124 449 449 450 450 /** 451 * Is RTThreadPreemptIsPending reliable? 452 * 453 * @returns true if pending, false if not. 454 */ 455 RTDECL(bool) RTThreadPreemptIsPendingTrusty(void); 456 457 /** 451 458 * Preemption state saved by RTThreadPreemptDisable and used by 452 459 * RTThreadPreemptRestore to restore the previous state. -
trunk/src/VBox/HostDrivers/Support/SUPDrv.c
r19932 r20124 261 261 #endif 262 262 /* RTThreadPreemptIsEnabled - not necessary */ 263 /* RTThreadPreemptIsPending - not necessary */ 263 /* RTThreadPreemptIsPending - not necessary */ 264 /* RTThreadPreemptIsPendingTrusty - not necessary */ 264 265 /* RTThreadPreemptDisable - not necessary */ 265 266 DECLASM(void) UNWIND_WRAP(RTThreadPreemptRestore)(RTTHREADPREEMPTSTATE pState); … … 421 422 { "RTThreadPreemptIsEnabled", (void *)RTThreadPreemptIsEnabled }, 422 423 { "RTThreadPreemptIsPending", (void *)RTThreadPreemptIsPending }, 424 { "RTThreadPreemptIsPendingTrusty", (void *)RTThreadPreemptIsPendingTrusty }, 423 425 { "RTThreadPreemptDisable", (void *)RTThreadPreemptDisable }, 424 426 { "RTThreadPreemptRestore", (void *)UNWIND_WRAP(RTThreadPreemptRestore) }, -
trunk/src/VBox/HostDrivers/Support/SUPDrvIOC.h
r19932 r20124 188 188 * and renaming the related IOCtls too. 189 189 */ 190 #define SUPDRV_IOC_VERSION 0x000c000 3190 #define SUPDRV_IOC_VERSION 0x000c0004 191 191 192 192 /** SUP_IOCTL_COOKIE. */ -
trunk/src/VBox/HostDrivers/Support/SUPLib.cpp
r19892 r20124 260 260 strcpy(CookieReq.u.In.szMagic, SUPCOOKIE_MAGIC); 261 261 CookieReq.u.In.u32ReqVersion = SUPDRV_IOC_VERSION; 262 const uint32_t MinVersion = (SUPDRV_IOC_VERSION & 0xffff0000) == 0x000b0001263 ? 0x000 b0001262 const uint32_t MinVersion = (SUPDRV_IOC_VERSION & 0xffff0000) >= 0x000c0004 263 ? 0x000c0004 264 264 : SUPDRV_IOC_VERSION & 0xffff0000; 265 265 CookieReq.u.In.u32MinVersion = MinVersion; -
trunk/src/VBox/HostDrivers/Support/win/SUPDrvA-win.asm
r19932 r20124 155 155 ;NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTThreadPreemptIsEnabled - not necessary 156 156 ;NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTThreadPreemptIsPending - not necessary 157 ;NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTThreadPreemptIsPendingTrusty - not necessary 157 158 ;NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTThreadPreemptDisable - not necessary 158 159 NtWrapDyn2DrvFunctionWithAllRegParams supdrvNtWrap, RTThreadPreemptRestore -
trunk/src/VBox/Runtime/Makefile.kmk
r20111 r20124 1284 1284 r0drv/generic/RTThreadPreemptIsEnabled-r0drv-generic.cpp \ 1285 1285 r0drv/generic/RTThreadPreemptIsPending-r0drv-generic.cpp \ 1286 r0drv/generic/RTThreadPreemptIsPendingTrusty-r0drv-generic.cpp \ 1286 1287 r0drv/generic/RTThreadPreemptDisable-r0drv-generic.cpp \ 1287 1288 r0drv/generic/RTThreadPreemptRestore-r0drv-generic.cpp \ -
trunk/src/VBox/Runtime/r0drv/darwin/threadpreempt-r0drv-darwin.cpp
r19919 r20124 123 123 124 124 125 RTDECL(bool) RTThreadPreemptIsPendingTrusty(void) 126 { 127 /* yes, we think thaat RTThreadPreemptIsPending is reliable... */ 128 return true; 129 } 130 131 125 132 RTDECL(void) RTThreadPreemptDisable(PRTTHREADPREEMPTSTATE pState) 126 133 { -
trunk/src/VBox/Runtime/r0drv/generic/RTThreadPreemptIsPendingTrusty-r0drv-generic.cpp
r20113 r20124 1 1 /* $Id$ */ 2 2 /** @file 3 * IPRT - RTThreadPreemptIsPending , Generic ring-0 driver implementation.3 * IPRT - RTThreadPreemptIsPendingTrusty, Generic ring-0 driver implementation. 4 4 */ 5 5 6 6 /* 7 * Copyright (C) 200 8Sun Microsystems, Inc.7 * Copyright (C) 2009 Sun Microsystems, Inc. 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 33 33 *******************************************************************************/ 34 34 #include <iprt/thread.h> 35 #include <iprt/assert.h>36 35 37 36 38 RTDECL(bool) RTThreadPreemptIsPending (RTTHREAD hThread)37 RTDECL(bool) RTThreadPreemptIsPendingTrusty(void) 39 38 { 40 Assert(hThread == NIL_RTTHREAD);39 /* no, RTThreadPreemptIsPending is not reliable. */ 41 40 return false; 42 41 } -
trunk/src/VBox/Runtime/r0drv/linux/thread-r0drv-linux.c
r19941 r20124 102 102 103 103 104 RTDECL(bool) RTThreadPreemptIsPendingTrusty(void) 105 { 106 /* yes, RTThreadPreemptIsPending is reliable. */ 107 return true; 108 } 109 110 104 111 RTDECL(void) RTThreadPreemptDisable(PRTTHREADPREEMPTSTATE pState) 105 112 { -
trunk/src/VBox/Runtime/r0drv/nt/thread-r0drv-nt.cpp
r19969 r20124 148 148 149 149 150 RTDECL(bool) RTThreadPreemptIsPendingTrusty(void) 151 { 152 /* RTThreadPreemptIsPending is only reliable of we've got both offsets and size. */ 153 return offQuantumEnd != 0 154 && cbQuantumEnd != 0 155 && offDpcQueueDepth != 0; 156 } 157 158 150 159 RTDECL(void) RTThreadPreemptDisable(PRTTHREADPREEMPTSTATE pState) 151 160 { -
trunk/src/VBox/Runtime/r0drv/os2/thread-r0drv-os2.cpp
r19920 r20124 82 82 83 83 84 RTDECL(bool) RTThreadPreemptIsPendingTrusty(void) 85 { 86 /* yes, RTThreadPreemptIsPending is reliable. */ 87 return true; 88 } 89 90 84 91 RTDECL(bool) RTThreadPreemptIsPending(RTTHREAD hThread) 85 92 { -
trunk/src/VBox/Runtime/r0drv/solaris/thread-r0drv-solaris.c
r19917 r20124 122 122 123 123 124 RTDECL(bool) RTThreadPreemptIsPendingTrusty(void) 125 { 126 /* yes, RTThreadPreemptIsPending is reliable. */ 127 return true; 128 } 129 130 124 131 RTDECL(void) RTThreadPreemptDisable(PRTTHREADPREEMPTSTATE pState) 125 132 { -
trunk/src/VBox/Runtime/r0drv/solaris/vbi/thread-r0drv-solaris.c
r19917 r20124 113 113 114 114 115 RTDECL(bool) RTThreadPreemptIsPendingTrusty(void) 116 { 117 /* yes, RTThreadPreemptIsPending is reliable. */ 118 return true; 119 } 120 121 115 122 RTDECL(void) RTThreadPreemptDisable(PRTTHREADPREEMPTSTATE pState) 116 123 {
Note:
See TracChangeset
for help on using the changeset viewer.

