Add support for hppa/PA-RISC architecture
[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
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10
11 #include <stdlib.h>
12 #include <sys/time.h>
13
14 typedef unsigned long cycles_t;
15
16 static inline cycles_t caa_get_cycles(void)
17 {
18 cycles_t cycles;
19
20 asm volatile("mfctl 16, %0" : "=r" (cycles));
21 return cycles;
22 }
23
24 #ifdef __cplusplus
25 }
26 #endif
27
28 #include <urcu/arch/generic.h>
29
30 #endif /* _URCU_ARCH_HPPA_H */
This page took 0.042302 seconds and 4 git commands to generate.