blob: 3582b129b3c9eac2a6cf9d554ab4654f647a9295 (
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, Linaro Limited
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef ODP_PLAT_CPU_ARCH_H_
#define ODP_PLAT_CPU_ARCH_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
|