Changeset 15801 in vbox for trunk/src/VBox/Runtime/r0drv
- Timestamp:
- Jan 5, 2009 1:18:08 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 41378
- Location:
- trunk/src/VBox/Runtime/r0drv/linux
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/linux/RTThreadPreemptDisable-r0drv-linux.c
r15798 r15801 40 40 RTDECL(void) RTThreadPreemptDisable(PRTTHREADPREEMPTSTATE pState) 41 41 { 42 AssertPtr(pState); 43 Assert(pState->uchDummy != 42); 44 pState->uchDummy = 42; 45 42 46 /* 43 47 * Note: This call is a NOP if CONFIG_PREEMPT is not enabled in the Linux kernel … … 47 51 preempt_disable(); 48 52 } 53 -
trunk/src/VBox/Runtime/r0drv/linux/RTThreadPreemptRestore-r0drv-linux.c
r15798 r15801 40 40 RTDECL(void) RTThreadPreemptRestore(PRTTHREADPREEMPTSTATE pState) 41 41 { 42 AssertPtr(pState); 43 Assert(pState->uchDummy == 42); 44 pState->uchDummy = 0; 45 42 46 preempt_enable(); 43 47 } 48
Note:
See TracChangeset
for help on using the changeset viewer.