Commit | Line | Data |
---|---|---|
d3d3857f MJ |
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 | ||
e1259cb1 RB |
6 | #ifndef _URCU_ARCH_MIPS_H |
7 | #define _URCU_ARCH_MIPS_H | |
8 | ||
9 | /* | |
10 | * arch_mips.h: trivial definitions for the MIPS architecture. | |
e1259cb1 RB |
11 | */ |
12 | ||
13 | #include <urcu/compiler.h> | |
14 | #include <urcu/config.h> | |
999991c6 | 15 | #include <urcu/syscall-compat.h> |
e1259cb1 RB |
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 | ||
e1259cb1 RB |
27 | #ifdef __cplusplus |
28 | } | |
29 | #endif | |
30 | ||
31 | #include <urcu/arch/generic.h> | |
32 | ||
33 | #endif /* _URCU_ARCH_MIPS_H */ |