Public headers: use SPDX identifiers
[userspace-rcu.git] / include / urcu / arch / mips.h
1 // SPDX-FileCopyrightText: 2010 Paolo Bonzini <pbonzini@redhat.com>
2 // SPDX-FileCopyrightText: 2012 Ralf Baechle <ralf@linux-mips.org>
3 //
4 // SPDX-License-Identifier: LGPL-2.1-or-later
5
6 #ifndef _URCU_ARCH_MIPS_H
7 #define _URCU_ARCH_MIPS_H
8
9 /*
10 * arch_mips.h: trivial definitions for the MIPS architecture.
11 */
12
13 #include <urcu/compiler.h>
14 #include <urcu/config.h>
15 #include <urcu/syscall-compat.h>
16
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20
21 #define cmm_mb() __asm__ __volatile__ ( \
22 " .set mips2 \n" \
23 " sync \n" \
24 " .set mips0 \n" \
25 :::"memory")
26
27 #ifdef __cplusplus
28 }
29 #endif
30
31 #include <urcu/arch/generic.h>
32
33 #endif /* _URCU_ARCH_MIPS_H */
This page took 0.030882 seconds and 5 git commands to generate.