Changeset 54712 in vbox for trunk/include/VBox
- Timestamp:
- Mar 11, 2015 12:54:03 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/hm.h
r53615 r54712 179 179 VMMR0_INT_DECL(void) HMR0SavePendingIOPortRead(PVMCPU pVCpu, RTGCPTR GCPtrRip, RTGCPTR GCPtrRipNext, 180 180 unsigned uPort, unsigned uAndVal, unsigned cbSize); 181 /** Disables preemption if required. */ 181 #ifdef VBOX_STRICT 182 182 # define HM_DISABLE_PREEMPT_IF_NEEDED() \ 183 183 RTTHREADPREEMPTSTATE PreemptStateInternal = RTTHREADPREEMPTSTATE_INITIALIZER; \ … … 190 190 } else do { } while (0) 191 191 192 /** Restores preemption if previously disabled by HM_DISABLE_PREEMPT(). */193 192 # define HM_RESTORE_PREEMPT_IF_NEEDED() \ 194 193 do \ … … 197 196 RTThreadPreemptRestore(&PreemptStateInternal); \ 198 197 } while (0) 198 #else 199 # define HM_DISABLE_PREEMPT_IF_NEEDED() \ 200 RTTHREADPREEMPTSTATE PreemptStateInternal = RTTHREADPREEMPTSTATE_INITIALIZER; \ 201 RTThreadPreemptDisable(&PreemptStateInternal); 202 203 # define HM_RESTORE_PREEMPT_IF_NEEDED() do { RTThreadPreemptRestore(&PreemptStateInternal); } while(0) 204 #endif /* VBOX_STRICT */ 199 205 200 206 VMMR0_INT_DECL(int) HMR0SetupVM(PVM pVM);
Note:
See TracChangeset
for help on using the changeset viewer.