urcu-bp: use sys_membarrier when available
[urcu.git] / urcu / arch / hppa.h
CommitLineData
13e0bc72
HD
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
8extern "C" {
9#endif
10
11#include <stdlib.h>
12#include <sys/time.h>
13
14typedef unsigned long cycles_t;
15
16static 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.025942 seconds and 4 git commands to generate.