61e8283886db941a9d0f48965ece1f25a0efc3c9
[urcu.git] / urcu / arch / hppa.h
1 #ifndef _URCU_ARCH_HPPA_H
2 #define _URCU_ARCH_HPPA_H
3
4 #include <urcu/compiler.h>
5 #include <urcu/config.h>
6 #include <urcu/syscall-compat.h>
7
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11
12 #include <stdlib.h>
13 #include <sys/time.h>
14
15 typedef unsigned long cycles_t;
16
17 static inline cycles_t caa_get_cycles(void)
18 {
19 cycles_t cycles;
20
21 asm volatile("mfctl 16, %0" : "=r" (cycles));
22 return cycles;
23 }
24
25 #ifdef __cplusplus
26 }
27 #endif
28
29 #include <urcu/arch/generic.h>
30
31 #endif /* _URCU_ARCH_HPPA_H */
This page took 0.038703 seconds and 3 git commands to generate.