5 .globl _read_tsc /* read the cycle counter (Pentium and up) */
7 /**===========================================================================* */
8 /* PUBLIC void read_tsc(unsigned long *high, unsigned long *low); */
9 /* Read the cycle counter of the CPU. Pentium and up. */
14 .byte 0x0f /* this is the RDTSC instruction */
15 .byte 0x31 /* it places the TSC in EDX:EAX */
26 /**===========================================================================* */
27 /* PUBLIC void read_host_time_ns(unsigned long *high, unsigned long *low); */
28 /* access real time in ns from host in vmware. */
35 .byte 0x0f /* this is the RDTSC instruction */
36 .byte 0x31 /* it places the TSC in EDX:EAX */