Changeset 58a70b76 in rtems


Ignore:
Timestamp:
Aug 27, 2013, 1:14:04 PM (6 years ago)
Author:
WeiY <wei.a.yang@…>
Branches:
4.11, master
Children:
03aad60
Parents:
4288f9fd
git-author:
WeiY <wei.a.yang@…> (08/27/13 13:14:04)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/28/13 12:58:50)
Message:

score: Simplify <rtems/score/cpuatomic.h>

Add proper license and copyright.

Location:
cpukit/score/cpu
Files:
17 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/arm/rtems/score/cpuatomic.h

    r4288f9fd r58a70b76  
    1 /**
    2  * @file  rtems/score/cpuatomic.h
     1/*
     2 * COPYRIGHT (c) 2012-2013 Deng Hengyi.
    33 *
    4  * This include file implements the atomic operations for arm 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.
     4 * The license and distribution terms for this file may be
     5 * found in the file LICENSE in this distribution or at
     6 * http://www.rtems.com/license/LICENSE.
    107 */
    118
     
    1310#define _RTEMS_SCORE_ATOMIC_CPU_H
    1411
    15 #ifdef __cplusplus
    16 extern "C" {
    17 #endif
     12#include <rtems/score/cpustdatomic.h>
    1813
    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 */
     14#endif /* _RTEMS_SCORE_ATOMIC_CPU_H */
  • cpukit/score/cpu/avr/rtems/score/cpuatomic.h

    r4288f9fd r58a70b76  
    1 /**
    2  * @file  rtems/score/cpuatomic.h
     1/*
     2 * COPYRIGHT (c) 2012-2013 Deng Hengyi.
    33 *
    4  * This include file implements the atomic operations for avr 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.
     4 * The license and distribution terms for this file may be
     5 * found in the file LICENSE in this distribution or at
     6 * http://www.rtems.com/license/LICENSE.
    107 */
    118
     
    1310#define _RTEMS_SCORE_ATOMIC_CPU_H
    1411
    15 #ifdef __cplusplus
    16 extern "C" {
    17 #endif
     12#include <rtems/score/cpustdatomic.h>
    1813
    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 */
     14#endif /* _RTEMS_SCORE_ATOMIC_CPU_H */
  • cpukit/score/cpu/bfin/rtems/score/cpuatomic.h

    r4288f9fd r58a70b76  
    1 /**
    2  * @file  rtems/score/cpuatomic.h
     1/*
     2 * COPYRIGHT (c) 2012-2013 Deng Hengyi.
    33 *
    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 not define atomic ops. If the architecture works at SMP mode, most of
    9  * the parts of implementations are based on stdatomic.h.
     4 * The license and distribution terms for this file may be
     5 * found in the file LICENSE in this distribution or at
     6 * http://www.rtems.com/license/LICENSE.
    107 */
    118
     
    1310#define _RTEMS_SCORE_ATOMIC_CPU_H
    1411
    15 #ifdef __cplusplus
    16 extern "C" {
    17 #endif
     12#include <rtems/score/cpustdatomic.h>
    1813
    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 */
     14#endif /* _RTEMS_SCORE_ATOMIC_CPU_H */
  • cpukit/score/cpu/h8300/rtems/score/cpuatomic.h

    r4288f9fd r58a70b76  
    1 /**
    2  * @file  rtems/score/cpuatomic.h
     1/*
     2 * COPYRIGHT (c) 2012-2013 Deng Hengyi.
    33 *
    4  * This include file implements the atomic operations for h8300 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.
     4 * The license and distribution terms for this file may be
     5 * found in the file LICENSE in this distribution or at
     6 * http://www.rtems.com/license/LICENSE.
    107 */
    118
     
    1310#define _RTEMS_SCORE_ATOMIC_CPU_H
    1411
    15 #ifdef __cplusplus
    16 extern "C" {
    17 #endif
     12#include <rtems/score/cpustdatomic.h>
    1813
    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 */
     14#endif /* _RTEMS_SCORE_ATOMIC_CPU_H */
  • cpukit/score/cpu/i386/rtems/score/cpuatomic.h

    r4288f9fd r58a70b76  
    1 /**
    2  * @file  rtems/score/cpuatomic.h
     1/*
     2 * COPYRIGHT (c) 2012-2013 Deng Hengyi.
    33 *
    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.
     4 * The license and distribution terms for this file may be
     5 * found in the file LICENSE in this distribution or at
     6 * http://www.rtems.com/license/LICENSE.
    107 */
    118
     
    1310#define _RTEMS_SCORE_ATOMIC_CPU_H
    1411
    15 #ifdef __cplusplus
    16 extern "C" {
    17 #endif
     12#include <rtems/score/cpustdatomic.h>
    1813
    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 */
     14#endif /* _RTEMS_SCORE_ATOMIC_CPU_H */
  • cpukit/score/cpu/lm32/rtems/score/cpuatomic.h

    r4288f9fd r58a70b76  
    1 /**
    2  * @file  rtems/score/cpuatomic.h
     1/*
     2 * COPYRIGHT (c) 2012-2013 Deng Hengyi.
    33 *
    4  * This include file implements the atomic operations for lm32 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.
     4 * The license and distribution terms for this file may be
     5 * found in the file LICENSE in this distribution or at
     6 * http://www.rtems.com/license/LICENSE.
    107 */
    118
     
    1310#define _RTEMS_SCORE_ATOMIC_CPU_H
    1411
    15 #ifdef __cplusplus
    16 extern "C" {
    17 #endif
     12#include <rtems/score/cpustdatomic.h>
    1813
    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 */
     14#endif /* _RTEMS_SCORE_ATOMIC_CPU_H */
  • cpukit/score/cpu/m32c/rtems/score/cpuatomic.h

    r4288f9fd r58a70b76  
    1 /**
    2  * @file  rtems/score/cpuatomic.h
     1/*
     2 * COPYRIGHT (c) 2012-2013 Deng Hengyi.
    33 *
    4  * This include file implements the atomic operations for m32c 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.
     4 * The license and distribution terms for this file may be
     5 * found in the file LICENSE in this distribution or at
     6 * http://www.rtems.com/license/LICENSE.
    107 */
    118
     
    1310#define _RTEMS_SCORE_ATOMIC_CPU_H
    1411
    15 #ifdef __cplusplus
    16 extern "C" {
    17 #endif
     12#include <rtems/score/cpustdatomic.h>
    1813
    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 */
     14#endif /* _RTEMS_SCORE_ATOMIC_CPU_H */
  • cpukit/score/cpu/m32r/rtems/score/cpuatomic.h

    r4288f9fd r58a70b76  
    1 /**
    2  * @file  rtems/score/cpuatomic.h
     1/*
     2 * COPYRIGHT (c) 2012-2013 Deng Hengyi.
    33 *
    4  * This include file implements the atomic operations for m32r 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.
     4 * The license and distribution terms for this file may be
     5 * found in the file LICENSE in this distribution or at
     6 * http://www.rtems.com/license/LICENSE.
    107 */
    118
     
    1310#define _RTEMS_SCORE_ATOMIC_CPU_H
    1411
    15 #ifdef __cplusplus
    16 extern "C" {
    17 #endif
     12#include <rtems/score/cpustdatomic.h>
    1813
    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 */
     14#endif /* _RTEMS_SCORE_ATOMIC_CPU_H */
  • cpukit/score/cpu/m68k/rtems/score/cpuatomic.h

    r4288f9fd r58a70b76  
    1 /**
    2  * @file  rtems/score/cpuatomic.h
     1/*
     2 * COPYRIGHT (c) 2012-2013 Deng Hengyi.
    33 *
    4  * This include file implements the atomic operations for m68k 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.
     4 * The license and distribution terms for this file may be
     5 * found in the file LICENSE in this distribution or at
     6 * http://www.rtems.com/license/LICENSE.
    107 */
    118
     
    1310#define _RTEMS_SCORE_ATOMIC_CPU_H
    1411
    15 #ifdef __cplusplus
    16 extern "C" {
    17 #endif
     12#include <rtems/score/cpustdatomic.h>
    1813
    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 */
     14#endif /* _RTEMS_SCORE_ATOMIC_CPU_H */
  • cpukit/score/cpu/mips/rtems/score/cpuatomic.h

    r4288f9fd r58a70b76  
    1 /**
    2  * @file  rtems/score/cpuatomic.h
     1/*
     2 * COPYRIGHT (c) 2012-2013 Deng Hengyi.
    33 *
    4  * This include file implements the atomic operations for mips 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.
     4 * The license and distribution terms for this file may be
     5 * found in the file LICENSE in this distribution or at
     6 * http://www.rtems.com/license/LICENSE.
    107 */
    118
     
    1310#define _RTEMS_SCORE_ATOMIC_CPU_H
    1411
    15 #ifdef __cplusplus
    16 extern "C" {
    17 #endif
     12#include <rtems/score/cpustdatomic.h>
    1813
    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 */
     14#endif /* _RTEMS_SCORE_ATOMIC_CPU_H */
  • cpukit/score/cpu/moxie/rtems/score/cpuatomic.h

    r4288f9fd r58a70b76  
    1 /**
    2  * @file  rtems/score/cpuatomic.h
     1/*
     2 * COPYRIGHT (c) 2012-2013 Deng Hengyi.
    33 *
    4  * This include file implements the atomic operations for moxie 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.
     4 * The license and distribution terms for this file may be
     5 * found in the file LICENSE in this distribution or at
     6 * http://www.rtems.com/license/LICENSE.
    107 */
    118
     
    1310#define _RTEMS_SCORE_ATOMIC_CPU_H
    1411
    15 #ifdef __cplusplus
    16 extern "C" {
    17 #endif
     12#include <rtems/score/cpustdatomic.h>
    1813
    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 */
     14#endif /* _RTEMS_SCORE_ATOMIC_CPU_H */
  • cpukit/score/cpu/nios2/rtems/score/cpuatomic.h

    r4288f9fd r58a70b76  
    1 /**
    2  * @file  rtems/score/cpuatomic.h
     1/*
     2 * COPYRIGHT (c) 2012-2013 Deng Hengyi.
    33 *
    4  * This include file implements the atomic operations for nios2 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.
     4 * The license and distribution terms for this file may be
     5 * found in the file LICENSE in this distribution or at
     6 * http://www.rtems.com/license/LICENSE.
    107 */
    118
     
    1310#define _RTEMS_SCORE_ATOMIC_CPU_H
    1411
    15 #ifdef __cplusplus
    16 extern "C" {
    17 #endif
     12#include <rtems/score/cpustdatomic.h>
    1813
    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 */
     14#endif /* _RTEMS_SCORE_ATOMIC_CPU_H */
  • cpukit/score/cpu/powerpc/rtems/score/cpuatomic.h

    r4288f9fd r58a70b76  
    1 /**
    2  * @file  rtems/score/cpuatomic.h
     1/*
     2 * COPYRIGHT (c) 2012-2013 Deng Hengyi.
    33 *
    4  * This include file implements the atomic operations for powerpc 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.
     4 * The license and distribution terms for this file may be
     5 * found in the file LICENSE in this distribution or at
     6 * http://www.rtems.com/license/LICENSE.
    107 */
    118
     
    1310#define _RTEMS_SCORE_ATOMIC_CPU_H
    1411
    15 #ifdef __cplusplus
    16 extern "C" {
    17 #endif
     12#include <rtems/score/cpustdatomic.h>
    1813
    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 */
     14#endif /* _RTEMS_SCORE_ATOMIC_CPU_H */
  • cpukit/score/cpu/sh/rtems/score/cpuatomic.h

    r4288f9fd r58a70b76  
    1 /**
    2  * @file  rtems/score/cpuatomic.h
     1/*
     2 * COPYRIGHT (c) 2012-2013 Deng Hengyi.
    33 *
    4  * This include file implements the atomic operations for sh 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.
     4 * The license and distribution terms for this file may be
     5 * found in the file LICENSE in this distribution or at
     6 * http://www.rtems.com/license/LICENSE.
    107 */
    118
     
    1310#define _RTEMS_SCORE_ATOMIC_CPU_H
    1411
    15 #ifdef __cplusplus
    16 extern "C" {
    17 #endif
     12#include <rtems/score/cpustdatomic.h>
    1813
    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 */
     14#endif /* _RTEMS_SCORE_ATOMIC_CPU_H */
  • cpukit/score/cpu/sparc/rtems/score/cpuatomic.h

    r4288f9fd r58a70b76  
    1 /**
    2  * @file  rtems/score/cpuatomic.h
     1/*
     2 * COPYRIGHT (c) 2012-2013 Deng Hengyi.
    33 *
    4  * This include file implements the atomic operations for sparc 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.
     4 * The license and distribution terms for this file may be
     5 * found in the file LICENSE in this distribution or at
     6 * http://www.rtems.com/license/LICENSE.
    107 */
    118
     
    1310#define _RTEMS_SCORE_ATOMIC_CPU_H
    1411
    15 #ifdef __cplusplus
    16 extern "C" {
    17 #endif
     12#include <rtems/score/cpustdatomic.h>
    1813
    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 */
     14#endif /* _RTEMS_SCORE_ATOMIC_CPU_H */
  • cpukit/score/cpu/sparc64/rtems/score/cpuatomic.h

    r4288f9fd r58a70b76  
    1 /**
    2  * @file  rtems/score/cpuatomic.h
     1/*
     2 * COPYRIGHT (c) 2012-2013 Deng Hengyi.
    33 *
    4  * This include file implements the atomic operations for sparc64 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.
     4 * The license and distribution terms for this file may be
     5 * found in the file LICENSE in this distribution or at
     6 * http://www.rtems.com/license/LICENSE.
    107 */
    118
     
    1310#define _RTEMS_SCORE_ATOMIC_CPU_H
    1411
    15 #ifdef __cplusplus
    16 extern "C" {
    17 #endif
     12#include <rtems/score/cpustdatomic.h>
    1813
    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 */
     14#endif /* _RTEMS_SCORE_ATOMIC_CPU_H */
  • cpukit/score/cpu/v850/rtems/score/cpuatomic.h

    r4288f9fd r58a70b76  
    1 /**
    2  * @file  rtems/score/cpuatomic.h
     1/*
     2 * COPYRIGHT (c) 2012-2013 Deng Hengyi.
    33 *
    4  * This include file implements the atomic operations for v850 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.
     4 * The license and distribution terms for this file may be
     5 * found in the file LICENSE in this distribution or at
     6 * http://www.rtems.com/license/LICENSE.
    107 */
    118
     
    1310#define _RTEMS_SCORE_ATOMIC_CPU_H
    1411
    15 #ifdef __cplusplus
    16 extern "C" {
    17 #endif
     12#include <rtems/score/cpustdatomic.h>
    1813
    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 */
     14#endif /* _RTEMS_SCORE_ATOMIC_CPU_H */
Note: See TracChangeset for help on using the changeset viewer.