Changeset 106456 in vbox for trunk/src/VBox
- Timestamp:
- Oct 17, 2024 2:03:57 PM (6 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/nt/thread-r0drv-nt.cpp
r106061 r106456 45 45 #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) 46 46 # include <iprt/asm-amd64-x86.h> 47 #elif defined(RT_ARCH_ARM64) || defined(RT_ARCH_ARM32) 48 # include <iprt/asm-arm.h> 47 49 #endif 48 50 #include <iprt/assert.h> … … 119 121 } 120 122 123 #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) /* Not required in ARM as we don't support pre W10 kernels. */ 121 124 /* 122 125 * Fallback approach for pre W10 kernels. … … 146 149 RTCCUINTREG fSavedFlags = ASMIntDisableFlags(); 147 150 148 # ifdef RT_ARCH_X86151 # ifdef RT_ARCH_X86 149 152 PKPCR pPcr = (PKPCR)__readfsdword(RT_UOFFSETOF(KPCR,SelfPcr)); 150 153 uint8_t *pbPrcb = (uint8_t *)pPcr->Prcb; 151 154 152 # elif defined(RT_ARCH_AMD64)155 # elif defined(RT_ARCH_AMD64) 153 156 /* HACK ALERT! The offset is from windbg/vista64. */ 154 157 PKPCR pPcr = (PKPCR)__readgsqword(RT_UOFFSETOF(KPCR,Self)); 155 158 uint8_t *pbPrcb = (uint8_t *)pPcr->CurrentPrcb; 156 159 157 #else 158 # error "port me" 159 #endif 160 # endif 160 161 161 162 /* Check QuantumEnd. */ … … 183 184 ASMSetFlags(fSavedFlags); 184 185 return fPending; 186 #else 187 AssertFailed(); 188 return false; 189 #endif 185 190 } 186 191
Note:
See TracChangeset
for help on using the changeset viewer.