blob: 45d95e9e341e7fb94503247c9895c37b4c10c647 (
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
27
28
29
30
31
32
|
/* Copyright (c) 2016-2018, Linaro Limited
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef ODP_API_ABI_CPU_H_
#define ODP_API_ABI_CPU_H_
#ifdef __cplusplus
extern "C" {
#endif
#if defined __OCTEON__
#define ODP_CACHE_LINE_SIZE 128
#else
#error Please add support for your arch in cpu_arch.h
#endif
static inline void odp_cpu_pause(void)
{
__asm__ __volatile__ ("nop");
__asm__ __volatile__ ("nop");
__asm__ __volatile__ ("nop");
__asm__ __volatile__ ("nop");
}
#ifdef __cplusplus
}
#endif
#endif
|