Loading...
iokit/Kernel/IOWorkLoop.cpp xnu-344 xnu-517.7.7
--- xnu/xnu-344/iokit/Kernel/IOWorkLoop.cpp
+++ xnu/xnu-517.7.7/iokit/Kernel/IOWorkLoop.cpp
@@ -57,14 +57,8 @@
 
 #define fFlags loopRestart
 
-extern "C" extern void stack_privilege( thread_t thread);
-
 void IOWorkLoop::launchThreadMain(void *self)
 {
-    register thread_t mythread = current_thread();
-
-    // Make sure that this thread always has a kernel stack
-    stack_privilege(mythread);
     thread_set_cont_arg((int) self);
     threadMainContinuation();
 }
@@ -109,7 +103,7 @@
     IOWorkLoop *me = new IOWorkLoop;
 
     if (me && !me->init()) {
-        me->free();
+        me->release();
         return 0;
     }
 
@@ -373,8 +367,8 @@
 }
 
 IOReturn IOWorkLoop::runAction(Action inAction, OSObject *target,
-                                  void *arg0 = 0, void *arg1 = 0,
-                                  void *arg2 = 0, void *arg3 = 0)
+                                  void *arg0, void *arg1,
+                                  void *arg2, void *arg3)
 {
     IOReturn res;