tile: allocate membarrier system call number
[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>
999991c6 6#include <urcu/syscall-compat.h>
13e0bc72
HD
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12#include <stdlib.h>
13#include <sys/time.h>
14
15typedef unsigned long cycles_t;
16
17static 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.04799 seconds and 4 git commands to generate.