Changeset 54866 in vbox for trunk/src/VBox/Runtime/r0drv/linux/threadctxhooks-r0drv-linux.c
- Timestamp:
- Mar 20, 2015 1:00:25 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/linux/threadctxhooks-r0drv-linux.c
r54802 r54866 37 37 #include <iprt/err.h> 38 38 #include <iprt/asm.h> 39 #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) 40 # include <iprt/asm-amd64-x86.h> 41 #endif 39 42 #include "internal/thread.h" 40 43 … … 85 88 { 86 89 PRTTHREADCTXINT pThis = RT_FROM_MEMBER(pPreemptNotifier, RTTHREADCTXINT, hPreemptNotifier); 90 #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) 91 RTCCUINTREG fSavedEFlags = ASMGetFlags(); 92 stac(); 93 #endif 94 87 95 AssertPtr(pThis); 88 96 AssertPtr(pThis->pfnThreadCtxHook); … … 90 98 Assert(!RTThreadPreemptIsEnabled(NIL_RTTHREAD)); 91 99 92 stac();93 100 pThis->pfnThreadCtxHook(RTTHREADCTXEVENT_PREEMPTING, pThis->pvUser); 101 102 #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) 94 103 clac(); 104 ASMSetFlags(fSavedEFlags); 105 #endif 95 106 } 96 107 … … 108 119 { 109 120 PRTTHREADCTXINT pThis = RT_FROM_MEMBER(pPreemptNotifier, RTTHREADCTXINT, hPreemptNotifier); 121 #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) 122 RTCCUINTREG fSavedEFlags = ASMGetFlags(); 123 stac(); 124 #endif 125 110 126 AssertPtr(pThis); 111 127 AssertPtr(pThis->pfnThreadCtxHook); 112 128 Assert(pThis->fRegistered); 113 129 114 stac(); 130 115 131 pThis->pfnThreadCtxHook(RTTHREADCTXEVENT_RESUMED, pThis->pvUser); 132 133 #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) 116 134 clac(); 135 ASMSetFlags(fSavedEFlags); 136 #endif 117 137 } 118 138
Note:
See TracChangeset
for help on using the changeset viewer.