X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/39236c6e673c41db228275375ab7fdb0f837b292..5ba3f43ea354af8ad55bea84372a2bc834d8757c:/osfmk/i386/rtclock_asm.h diff --git a/osfmk/i386/rtclock_asm.h b/osfmk/i386/rtclock_asm.h index 5ad7dde8a..dba69a6e7 100644 --- a/osfmk/i386/rtclock_asm.h +++ b/osfmk/i386/rtclock_asm.h @@ -128,7 +128,6 @@ */ #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 */ ; \ @@ -142,7 +141,8 @@ 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 */ /*