aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/arch/default/odp_cpu.h
blob: 6b10966c652a10f9504386793a7976c6e42d4182 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* Copyright (c) 2017, ARM Limited. All rights reserved.
 *
 * Copyright (c) 2017-2018, Linaro Limited
 * All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#ifndef ODP_DEFAULT_CPU_H_
#define ODP_DEFAULT_CPU_H_

#ifndef _ODP_UNALIGNED
#define _ODP_UNALIGNED 0
#endif

/******************************************************************************
 * Atomics
 *****************************************************************************/

#define atomic_store_release(loc, val, ro) \
	__atomic_store_n(loc, val, __ATOMIC_RELEASE)

#include "odp_atomic.h"
#include "odp_wait_until.h"

#endif