1 // SPDX-FileCopyrightText: 2014 Helge Deller <deller@gmx.de>
3 // SPDX-License-Identifier: LGPL-2.1-or-later
5 #ifndef _URCU_ARCH_HPPA_H
6 #define _URCU_ARCH_HPPA_H
9 * arch/hppa.h: definitions for hppa architecture
12 #include <urcu/compiler.h>
13 #include <urcu/config.h>
14 #include <urcu/syscall-compat.h>
24 * On Linux, define the membarrier system call number if not yet available in
27 #if (defined(__linux__) && !defined(__NR_membarrier))
28 #define __NR_membarrier 343
31 #define HAS_CAA_GET_CYCLES
32 typedef unsigned long caa_cycles_t
;
34 static inline caa_cycles_t
caa_get_cycles(void)
38 asm volatile("mfctl 16, %0" : "=r" (cycles
));
46 #include <urcu/arch/generic.h>
48 #endif /* _URCU_ARCH_HPPA_H */
This page took 0.063627 seconds and 4 git commands to generate.