4.115
Last change
on this file since 9b605b28 was
9b605b28,
checked in by WeiY <wei.a.yang@…>, on 04/23/13 at 16:34:16
|
Using the generic atomic ops to implement UP mode atomic for all architectures. SMP atomic port will be later.
|
-
Property mode set to
100644
|
File size:
903 bytes
|
Line | |
---|
1 | /** |
---|
2 | * @file rtems/score/cpuatomic.h |
---|
3 | * |
---|
4 | * This include file implements the atomic operations for bfin 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 use a generic atomic ops using disable/enable-IRQ simulated. If the |
---|
9 | * the architecture works at SMP mode, most of the parts of implementations |
---|
10 | * are imported from FreeBSD kernel. |
---|
11 | */ |
---|
12 | |
---|
13 | #ifndef _RTEMS_SCORE_ATOMIC_CPU_H |
---|
14 | #define _RTEMS_SCORE_ATOMIC_CPU_H |
---|
15 | |
---|
16 | #include <rtems/score/genericcpuatomic.h> |
---|
17 | |
---|
18 | #ifdef __cplusplus |
---|
19 | extern "C" { |
---|
20 | #endif |
---|
21 | |
---|
22 | /** |
---|
23 | * @defgroup RTEMS atomic implementation |
---|
24 | * |
---|
25 | */ |
---|
26 | |
---|
27 | /**@{*/ |
---|
28 | |
---|
29 | #if !defined(RTEMS_SMP) |
---|
30 | #include <rtems/score/genericatomicops.h> |
---|
31 | #else |
---|
32 | #endif |
---|
33 | |
---|
34 | #ifdef __cplusplus |
---|
35 | } |
---|
36 | #endif |
---|
37 | |
---|
38 | /**@}*/ |
---|
39 | #endif |
---|
40 | /* end of include file */ |
---|
Note: See
TracBrowser
for help on using the repository browser.