]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/Kernel/IOTimerEventSource.cpp
xnu-2782.20.48.tar.gz
[apple/xnu.git] / iokit / Kernel / IOTimerEventSource.cpp
index e42fa436c09a9124f0a267ef168de7b776359c08..df939da91c0fe02d1ef4eaf4804f99cd78c0d0ee 100644 (file)
@@ -41,7 +41,6 @@ __END_DECLS
 
 #include <IOKit/IOTimeStamp.h>
 #include <IOKit/IOKitDebug.h>
-
 #if CONFIG_DTRACE
 #include <mach/sdt.h>
 #endif
@@ -118,7 +117,7 @@ void IOTimerEventSource::timeout(void *self)
                
                if (trace)
                        IOTimeStampStartConstant(IODBG_TIMES(IOTIMES_ACTION),
-                                                                                        (uintptr_t) doit, (uintptr_t) me->owner);
+                                                                                        VM_KERNEL_UNSLIDE(doit), (uintptr_t) me->owner);
                                
                 (*doit)(me->owner, me);
 #if CONFIG_DTRACE
@@ -127,7 +126,7 @@ void IOTimerEventSource::timeout(void *self)
                 
                                if (trace)
                        IOTimeStampEndConstant(IODBG_TIMES(IOTIMES_ACTION),
-                                                                                  (uintptr_t) doit, (uintptr_t) me->owner);
+                                                                                  VM_KERNEL_UNSLIDE(doit), (uintptr_t) me->owner);
             }
             IOStatisticsOpenGate();
             wl->openGate();
@@ -160,7 +159,7 @@ void IOTimerEventSource::timeoutAndRelease(void * self, void * c)
                
                if (trace)
                        IOTimeStampStartConstant(IODBG_TIMES(IOTIMES_ACTION),
-                                                                                        (uintptr_t) doit, (uintptr_t) me->owner);
+                                                                                        VM_KERNEL_UNSLIDE(doit), (uintptr_t) me->owner);
                                
                 (*doit)(me->owner, me);
 #if CONFIG_DTRACE
@@ -169,7 +168,7 @@ void IOTimerEventSource::timeoutAndRelease(void * self, void * c)
                 
                                if (trace)
                        IOTimeStampEndConstant(IODBG_TIMES(IOTIMES_ACTION),
-                                                                                  (uintptr_t) doit, (uintptr_t) me->owner);
+                                                                                  VM_KERNEL_UNSLIDE(doit), (uintptr_t) me->owner);
             }
             IOStatisticsOpenGate();
             wl->openGate();
@@ -370,7 +369,7 @@ IOReturn IOTimerEventSource::wakeAtTime(AbsoluteTime inAbstime)
             reserved->workLoop = workLoop;
             reserved->calloutGeneration++;
             if (thread_call_enter1_delayed((thread_call_t) calloutEntry, 
-                    (void *) reserved->calloutGeneration, inAbstime))
+                    (void *)(uintptr_t) reserved->calloutGeneration, inAbstime))
             {
                 release();
                 workLoop->release();