summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/sparc64/rtems/score/cpuatomic.h
blob: c74d75c261d98da0f413e08151e8ea150094251a (plain) (blame)
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
33
34
35
36
37
38
/**
 * @file  rtems/score/cpuatomic.h
 *
 * This include file implements the atomic operations for sparc64 and defines
 * atomic data types which are used by the atomic operations API file. This
 * file should use fixed name cpuatomic.h and should be included in atomic
 * operations API file atomic.h. If the architecture works at the UP mode it
 * will not define atomic ops. If the architecture works at SMP mode, most of
 * the parts of implementations are based on stdatomic.h.
 */

#ifndef _RTEMS_SCORE_ATOMIC_CPU_H
#define _RTEMS_SCORE_ATOMIC_CPU_H

#ifdef __cplusplus
extern "C" {
#endif

/**
 * @defgroup RTEMS atomic implementation
 *
 */

/**@{*/

#if !defined(RTEMS_SMP)
# error "Now atomic implementation only supports SMP mode."
#else
#include <rtems/score/cpustdatomic.h>
#endif

#ifdef __cplusplus
}
#endif

/**@}*/
#endif
/*  end of include file */