summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/genericcpuatomic.h
blob: 2b49472546603f4ef564e1a090965b6f920c58ba (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/**
 * @file  rtems/score/genericcpuatomic.h
 * 
 * This include file includes the general atomic data type
 * for all the architecture. 
 */

/*
 * COPYRIGHT (c) 2012 Deng Hengyi.
 *
 * The license and distribution terms for this file may be
 * found in the file LICENSE in this distribution or at
 */

#ifndef _RTEMS_SCORE_GENERAL_ATOMIC_CPU_H
#define _RTEMS_SCORE_GEMERAL_ATOMIC_CPU_H

#ifdef __cplusplus
extern "C" {
#endif

/**
 * @defgroup RTEMS general atomic data type
 *
 */

/**@{*/

/**
 * @brief atomic operation unsigned integer type
 */
typedef unsigned int Atomic_Int;

/**
 * @brief atomic operation unsigned long integer type
 */
typedef unsigned long Atomic_Long;

/**
 * @brief atomic operation unsigned 32-bit integer type
 */
typedef uint32_t Atomic_Int32;

/**
 * @brief atomic operation unsigned 64-bit integer type
 */
typedef uint64_t Atomic_Int64;

/**
 * @brief atomic operation unsigned integer the size of a pointer type
 */
typedef uintptr_t Atomic_Pointer;

#ifdef __cplusplus
}
#endif

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