.globl asm_compare_and_swap
.globl asm_memory_barrier
+ .globl asm_get_cycle_count
+
/********************* function asm_calljavafunction ***************************
* *
ret
+/* asm_get_cycle_count *********************************************************
+
+ Get the current time-stamp counter from the CPU.
+
+*******************************************************************************/
+
+asm_get_cycle_count:
+ rdtsc
+ shl $0x20, %rdx
+ mov %eax, %eax
+ or %rdx, %rax
+ ret
+
+
/* disable exec-stacks ********************************************************/
#if defined(__linux__) && defined(__ELF__)