fix: add missing SPDX licensing tags
[userspace-rcu.git] / include / urcu / arch / loongarch.h
CommitLineData
1c64a40d
MJ
1// SPDX-FileCopyrightText: 2021 Wang Jing <wangjing@loongson.cn>
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4
dc46a9c3
WJ
5#ifndef _URCU_ARCH_LOONGARCH_H
6#define _URCU_ARCH_LOONGARCH_H
7
8/*
9 * arch/loongarch.h: trivial definitions for the LoongArch architecture.
dc46a9c3
WJ
10 */
11
12#include <urcu/compiler.h>
13#include <urcu/config.h>
14#include <urcu/syscall-compat.h>
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
20#include <stdlib.h>
21#include <sys/time.h>
22
23/*
24 * On Linux, define the membarrier system call number if not yet available in
25 * the system headers.
26 */
27#if (defined(__linux__) && !defined(__NR_membarrier))
28#define __NR_membarrier 283
29#endif
30
31#ifdef __cplusplus
32}
33#endif
34
35#include <urcu/arch/generic.h>
36
37#endif /* _URCU_ARCH_LOONGARCH_H */
This page took 0.031073 seconds and 4 git commands to generate.