]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/i386/rtclock_asm.h
xnu-4570.1.46.tar.gz
[apple/xnu.git] / osfmk / i386 / rtclock_asm.h
index 5ad7dde8a90541ec5edb2fdb1adb1ae64ddbb749..dba69a6e742ae828f223b408b5c383f5a313afb3 100644 (file)
  */
 #define        TIME_INT_EXIT                                                          \
        NANOTIME                                /* %rax := nanosecs */       ; \
-       movq    %rax,%gs:CPU_INT_EVENT_TIME     /* save in cpu data */       ; \
        movq    %rax,%rsi                       /* save timestamp */         ; \
        movq    %gs:CPU_PROCESSOR,%rdx          /* get processor */          ; \
        movq    KERNEL_TIMER(%rdx),%rcx         /* get kernel timer */       ; \
        TIMER_UPDATE(%rcx,%rax,0)               /* update timer */           ; \
        popq    %rcx                            /* restore state */          ; \
        movq    %rcx,CURRENT_STATE(%rdx)        /* set current state */      ; \
-       movq    %rsi,TIMER_TSTAMP(%rcx)         /* set timestamp */
+       movq    %rsi,TIMER_TSTAMP(%rcx)         /* set timestamp */          ; \
+       movq    $0,%gs:CPU_INT_EVENT_TIME       /* clear interrupt entry time */
 
 
 /*