Changeset 19919 in vbox for trunk/src/VBox/Runtime/r0drv
- Timestamp:
- May 22, 2009 5:02:55 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 47616
- Location:
- trunk/src/VBox/Runtime/r0drv/darwin
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/darwin/initterm-r0drv-darwin.cpp
r8245 r19919 46 46 47 47 48 49 48 int rtR0InitNative(void) 50 49 { … … 55 54 AssertReturn(g_pDarwinLockGroup, VERR_NO_MEMORY); 56 55 57 return VINF_SUCCESS; 56 /* 57 * Initialize the preemption hacks. 58 */ 59 int rc = rtThreadPreemptDarwinInit(); 60 if (RT_FAILURE(rc)) 61 rtR0TermNative(); 62 63 return rc; 58 64 } 59 65 … … 61 67 void rtR0TermNative(void) 62 68 { 69 /* 70 * Preemption hacks before the lock group. 71 */ 72 rtThreadPreemptDarwinTerm(); 73 63 74 /* 64 75 * Free the lock group. -
trunk/src/VBox/Runtime/r0drv/darwin/the-darwin-kernel.h
r16354 r19919 79 79 80 80 81 /* See osfmk/kern/ast.h. */ 82 #ifndef AST_PREEMPT 83 # define AST_PREEMPT UINT32_C(1) 84 # define AST_QUANTUM UINT32_C(2) 85 # define AST_URGENT UINT32_C(4) 86 #endif 87 88 81 89 __BEGIN_DECLS 82 90 /* mach/vm_types.h */ … … 121 129 __BEGIN_DECLS 122 130 extern lck_grp_t *g_pDarwinLockGroup; 131 int rtThreadPreemptDarwinInit(void); 132 void rtThreadPreemptDarwinTerm(void); 123 133 __END_DECLS 124 134
Note:
See TracChangeset
for help on using the changeset viewer.