Changes: Joseph Wenninger
Edwin Steiner
- $Id: asmpart.S 4749 2006-04-11 10:20:18Z twisti $
+ $Id: asmpart.S 4792 2006-04-19 01:05:18Z edwin $
*/
.globl asm_criticalsections
.globl asm_getclassvalues_atomic
+ .globl asm_get_cycle_count
+
/* asm_md_init *****************************************************************
#endif
+/* asm_get_cycle_count *********************************************************
+
+ Get the current time-stamp counter from the CPU.
+
+*******************************************************************************/
+
+asm_get_cycle_count:
+ push bp
+ mov sp,bp /* save stackptr */
+
+ rdtsc
+
+ leave
+ ret
+
+
/*
* These are local overrides for various environment variables in Emacs.
* Please do not remove this and leave it at the end of the file, where