Changeset 37040 in vbox
- Timestamp:
- May 11, 2011 4:42:48 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/darwin/threadpreempt-r0drv-darwin.cpp
r29255 r37040 108 108 /* HACK ALERT! This ASSUMES that the cpu_pending_ast member of cpu_data_t doesn't move. */ 109 109 uint32_t ast_pending; 110 #if 1110 #if defined(RT_ARCH_X86) || defined(RT_ARCH_AMD64) 111 111 __asm__ volatile("movl %%gs:%P1,%0\n\t" 112 112 : "=r" (ast_pending) 113 : "i" (7*sizeof(void*) + 7*sizeof(int)));113 : "i" (7*sizeof(void*) + (7 + (ARCH_BITS == 64)) *sizeof(int)) ); 114 114 #else 115 # error fixme. 115 116 cpu_data_t *pCpu = current_cpu_datap(void); 116 117 AssertCompileMemberOffset(cpu_data_t, cpu_pending_ast, 7*sizeof(void*) + 7*sizeof(int)); … … 124 125 RTDECL(bool) RTThreadPreemptIsPendingTrusty(void) 125 126 { 126 /* yes, we think tha at RTThreadPreemptIsPending is reliable... */127 /* yes, we think that RTThreadPreemptIsPending is reliable... */ 127 128 return true; 128 129 }
Note:
See TracChangeset
for help on using the changeset viewer.