]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/i386/machine_routines_asm.s
xnu-1228.12.14.tar.gz
[apple/xnu.git] / osfmk / i386 / machine_routines_asm.s
index f68b813768f7dee0ad029763b78baaa603fdf16c..bb4095af3a4eb0d09ae8ce125e43ec4dfe9e9689 100644 (file)
@@ -47,6 +47,7 @@ ENTRY(ml_get_timebase)
 
                        movl    S_ARG0, %ecx
                        
+                       lfence
                        rdtsc
                        lfence
                        
@@ -235,7 +236,9 @@ Lslow:
                pushl           %esi                                    /* save generation */
                pushl           RNT_SHIFT(%edi)                         /* save low 32 bits of tscFreq */
 
-               rdtsc                                                   /* get TSC in %edx:%eax */
+               lfence
+               rdtsc                                                   /* get TSC in %edx:%eax */
+               lfence
                subl            RNT_TSC_BASE(%edi),%eax
                sbbl            RNT_TSC_BASE+4(%edi),%edx