3 #include <machine/asm.h>
5 /**===========================================================================* */
6 /* PUBLIC void read_tsc(unsigned long *high, unsigned long *low); */
7 /* Read the cycle counter of the CPU. Pentium and up. */
11 .byte 0x0f /* this is the RDTSC instruction */
12 .byte 0x31 /* it places the TSC in EDX:EAX */
23 /**===========================================================================* */
24 /* PUBLIC void read_host_time_ns(unsigned long *high, unsigned long *low); */
25 /* access real time in ns from host in vmware. */
26 ENTRY(read_host_time_ns)
31 .byte 0x0f /* this is the RDTSC instruction */
32 .byte 0x31 /* it places the TSC in EDX:EAX */