4.115
Last change
on this file since d61e54c2 was
d61e54c2,
checked in by WeiY <wei.a.yang@…>, on 07/15/13 at 15:31:10
|
update-all-architectures-to-new-atomic-implementation
|
-
Property mode set to
100644
|
File size:
863 bytes
|
Line | |
---|
1 | /** |
---|
2 | * @file rtems/score/cpuatomic.h |
---|
3 | * |
---|
4 | * This include file implements the atomic operations for i386 and defines |
---|
5 | * atomic data types which are used by the atomic operations API file. This |
---|
6 | * file should use fixed name cpuatomic.h and should be included in atomic |
---|
7 | * operations API file atomic.h. If the architecture works at the UP mode it |
---|
8 | * will not define atomic ops. If the architecture works at SMP mode, most of |
---|
9 | * the parts of implementations are based on stdatomic.h. |
---|
10 | */ |
---|
11 | |
---|
12 | #ifndef _RTEMS_SCORE_ATOMIC_CPU_H |
---|
13 | #define _RTEMS_SCORE_ATOMIC_CPU_H |
---|
14 | |
---|
15 | #ifdef __cplusplus |
---|
16 | extern "C" { |
---|
17 | #endif |
---|
18 | |
---|
19 | /** |
---|
20 | * @defgroup RTEMS atomic implementation |
---|
21 | * |
---|
22 | */ |
---|
23 | |
---|
24 | /**@{*/ |
---|
25 | |
---|
26 | #if !defined(RTEMS_SMP) |
---|
27 | # error "Now atomic implementation only supports SMP mode." |
---|
28 | #else |
---|
29 | #include <rtems/score/cpustdatomic.h> |
---|
30 | #endif |
---|
31 | |
---|
32 | #ifdef __cplusplus |
---|
33 | } |
---|
34 | #endif |
---|
35 | |
---|
36 | /**@}*/ |
---|
37 | #endif |
---|
38 | /* end of include file */ |
---|
Note: See
TracBrowser
for help on using the repository browser.