[rtems commit] score: Simplify <rtems/score/cpuatomic.h>
Sebastian Huber
sebh at rtems.org
Wed Aug 28 12:54:21 UTC 2013
Module: rtems
Branch: master
Commit: 58a70b76350022234cd1ce5f3124a00687dda25e
Changeset: http://git.rtems.org/rtems/commit/?id=58a70b76350022234cd1ce5f3124a00687dda25e
Author: WeiY <wei.a.yang at gmail.com>
Date: Tue Aug 27 15:14:04 2013 +0200
score: Simplify <rtems/score/cpuatomic.h>
Add proper license and copyright.
---
cpukit/score/cpu/arm/rtems/score/cpuatomic.h | 36 ++++------------------
cpukit/score/cpu/avr/rtems/score/cpuatomic.h | 36 ++++------------------
cpukit/score/cpu/bfin/rtems/score/cpuatomic.h | 36 ++++------------------
cpukit/score/cpu/h8300/rtems/score/cpuatomic.h | 36 ++++------------------
cpukit/score/cpu/i386/rtems/score/cpuatomic.h | 36 ++++------------------
cpukit/score/cpu/lm32/rtems/score/cpuatomic.h | 36 ++++------------------
cpukit/score/cpu/m32c/rtems/score/cpuatomic.h | 36 ++++------------------
cpukit/score/cpu/m32r/rtems/score/cpuatomic.h | 36 ++++------------------
cpukit/score/cpu/m68k/rtems/score/cpuatomic.h | 36 ++++------------------
cpukit/score/cpu/mips/rtems/score/cpuatomic.h | 36 ++++------------------
cpukit/score/cpu/moxie/rtems/score/cpuatomic.h | 36 ++++------------------
cpukit/score/cpu/nios2/rtems/score/cpuatomic.h | 36 ++++------------------
cpukit/score/cpu/powerpc/rtems/score/cpuatomic.h | 36 ++++------------------
cpukit/score/cpu/sh/rtems/score/cpuatomic.h | 36 ++++------------------
cpukit/score/cpu/sparc/rtems/score/cpuatomic.h | 36 ++++------------------
cpukit/score/cpu/sparc64/rtems/score/cpuatomic.h | 36 ++++------------------
cpukit/score/cpu/v850/rtems/score/cpuatomic.h | 36 ++++------------------
17 files changed, 102 insertions(+), 510 deletions(-)
diff --git a/cpukit/score/cpu/arm/rtems/score/cpuatomic.h b/cpukit/score/cpu/arm/rtems/score/cpuatomic.h
index 77b9a81..3001245 100644
--- a/cpukit/score/cpu/arm/rtems/score/cpuatomic.h
+++ b/cpukit/score/cpu/arm/rtems/score/cpuatomic.h
@@ -1,38 +1,14 @@
-/**
- * @file rtems/score/cpuatomic.h
+/*
+ * COPYRIGHT (c) 2012-2013 Deng Hengyi.
*
- * This include file implements the atomic operations for arm 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.
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
*/
#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 */
+#endif /* _RTEMS_SCORE_ATOMIC_CPU_H */
diff --git a/cpukit/score/cpu/avr/rtems/score/cpuatomic.h b/cpukit/score/cpu/avr/rtems/score/cpuatomic.h
index f35cdb8..3001245 100644
--- a/cpukit/score/cpu/avr/rtems/score/cpuatomic.h
+++ b/cpukit/score/cpu/avr/rtems/score/cpuatomic.h
@@ -1,38 +1,14 @@
-/**
- * @file rtems/score/cpuatomic.h
+/*
+ * COPYRIGHT (c) 2012-2013 Deng Hengyi.
*
- * This include file implements the atomic operations for avr 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.
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
*/
#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 */
+#endif /* _RTEMS_SCORE_ATOMIC_CPU_H */
diff --git a/cpukit/score/cpu/bfin/rtems/score/cpuatomic.h b/cpukit/score/cpu/bfin/rtems/score/cpuatomic.h
index e293458..3001245 100644
--- a/cpukit/score/cpu/bfin/rtems/score/cpuatomic.h
+++ b/cpukit/score/cpu/bfin/rtems/score/cpuatomic.h
@@ -1,38 +1,14 @@
-/**
- * @file rtems/score/cpuatomic.h
+/*
+ * COPYRIGHT (c) 2012-2013 Deng Hengyi.
*
- * This include file implements the atomic operations for bfin 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.
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
*/
#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 */
+#endif /* _RTEMS_SCORE_ATOMIC_CPU_H */
diff --git a/cpukit/score/cpu/h8300/rtems/score/cpuatomic.h b/cpukit/score/cpu/h8300/rtems/score/cpuatomic.h
index 760bbb4..3001245 100644
--- a/cpukit/score/cpu/h8300/rtems/score/cpuatomic.h
+++ b/cpukit/score/cpu/h8300/rtems/score/cpuatomic.h
@@ -1,38 +1,14 @@
-/**
- * @file rtems/score/cpuatomic.h
+/*
+ * COPYRIGHT (c) 2012-2013 Deng Hengyi.
*
- * This include file implements the atomic operations for h8300 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.
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
*/
#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 */
+#endif /* _RTEMS_SCORE_ATOMIC_CPU_H */
diff --git a/cpukit/score/cpu/i386/rtems/score/cpuatomic.h b/cpukit/score/cpu/i386/rtems/score/cpuatomic.h
index 1656a8f..3001245 100644
--- a/cpukit/score/cpu/i386/rtems/score/cpuatomic.h
+++ b/cpukit/score/cpu/i386/rtems/score/cpuatomic.h
@@ -1,38 +1,14 @@
-/**
- * @file rtems/score/cpuatomic.h
+/*
+ * COPYRIGHT (c) 2012-2013 Deng Hengyi.
*
- * This include file implements the atomic operations for i386 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.
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
*/
#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 */
+#endif /* _RTEMS_SCORE_ATOMIC_CPU_H */
diff --git a/cpukit/score/cpu/lm32/rtems/score/cpuatomic.h b/cpukit/score/cpu/lm32/rtems/score/cpuatomic.h
index 5886f4e..3001245 100644
--- a/cpukit/score/cpu/lm32/rtems/score/cpuatomic.h
+++ b/cpukit/score/cpu/lm32/rtems/score/cpuatomic.h
@@ -1,38 +1,14 @@
-/**
- * @file rtems/score/cpuatomic.h
+/*
+ * COPYRIGHT (c) 2012-2013 Deng Hengyi.
*
- * This include file implements the atomic operations for lm32 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.
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
*/
#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 */
+#endif /* _RTEMS_SCORE_ATOMIC_CPU_H */
diff --git a/cpukit/score/cpu/m32c/rtems/score/cpuatomic.h b/cpukit/score/cpu/m32c/rtems/score/cpuatomic.h
index 6264b90..3001245 100644
--- a/cpukit/score/cpu/m32c/rtems/score/cpuatomic.h
+++ b/cpukit/score/cpu/m32c/rtems/score/cpuatomic.h
@@ -1,38 +1,14 @@
-/**
- * @file rtems/score/cpuatomic.h
+/*
+ * COPYRIGHT (c) 2012-2013 Deng Hengyi.
*
- * This include file implements the atomic operations for m32c 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.
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
*/
#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 */
+#endif /* _RTEMS_SCORE_ATOMIC_CPU_H */
diff --git a/cpukit/score/cpu/m32r/rtems/score/cpuatomic.h b/cpukit/score/cpu/m32r/rtems/score/cpuatomic.h
index 58b1e56..3001245 100644
--- a/cpukit/score/cpu/m32r/rtems/score/cpuatomic.h
+++ b/cpukit/score/cpu/m32r/rtems/score/cpuatomic.h
@@ -1,38 +1,14 @@
-/**
- * @file rtems/score/cpuatomic.h
+/*
+ * COPYRIGHT (c) 2012-2013 Deng Hengyi.
*
- * This include file implements the atomic operations for m32r 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.
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
*/
#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 */
+#endif /* _RTEMS_SCORE_ATOMIC_CPU_H */
diff --git a/cpukit/score/cpu/m68k/rtems/score/cpuatomic.h b/cpukit/score/cpu/m68k/rtems/score/cpuatomic.h
index 92fc4db..3001245 100644
--- a/cpukit/score/cpu/m68k/rtems/score/cpuatomic.h
+++ b/cpukit/score/cpu/m68k/rtems/score/cpuatomic.h
@@ -1,38 +1,14 @@
-/**
- * @file rtems/score/cpuatomic.h
+/*
+ * COPYRIGHT (c) 2012-2013 Deng Hengyi.
*
- * This include file implements the atomic operations for m68k 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.
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
*/
#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 */
+#endif /* _RTEMS_SCORE_ATOMIC_CPU_H */
diff --git a/cpukit/score/cpu/mips/rtems/score/cpuatomic.h b/cpukit/score/cpu/mips/rtems/score/cpuatomic.h
index 8f2c8bd..3001245 100644
--- a/cpukit/score/cpu/mips/rtems/score/cpuatomic.h
+++ b/cpukit/score/cpu/mips/rtems/score/cpuatomic.h
@@ -1,38 +1,14 @@
-/**
- * @file rtems/score/cpuatomic.h
+/*
+ * COPYRIGHT (c) 2012-2013 Deng Hengyi.
*
- * This include file implements the atomic operations for mips 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.
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
*/
#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 */
+#endif /* _RTEMS_SCORE_ATOMIC_CPU_H */
diff --git a/cpukit/score/cpu/moxie/rtems/score/cpuatomic.h b/cpukit/score/cpu/moxie/rtems/score/cpuatomic.h
index 23d0b09..3001245 100644
--- a/cpukit/score/cpu/moxie/rtems/score/cpuatomic.h
+++ b/cpukit/score/cpu/moxie/rtems/score/cpuatomic.h
@@ -1,38 +1,14 @@
-/**
- * @file rtems/score/cpuatomic.h
+/*
+ * COPYRIGHT (c) 2012-2013 Deng Hengyi.
*
- * This include file implements the atomic operations for moxie 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.
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
*/
#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 */
+#endif /* _RTEMS_SCORE_ATOMIC_CPU_H */
diff --git a/cpukit/score/cpu/nios2/rtems/score/cpuatomic.h b/cpukit/score/cpu/nios2/rtems/score/cpuatomic.h
index 354a70d..3001245 100644
--- a/cpukit/score/cpu/nios2/rtems/score/cpuatomic.h
+++ b/cpukit/score/cpu/nios2/rtems/score/cpuatomic.h
@@ -1,38 +1,14 @@
-/**
- * @file rtems/score/cpuatomic.h
+/*
+ * COPYRIGHT (c) 2012-2013 Deng Hengyi.
*
- * This include file implements the atomic operations for nios2 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.
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
*/
#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 */
+#endif /* _RTEMS_SCORE_ATOMIC_CPU_H */
diff --git a/cpukit/score/cpu/powerpc/rtems/score/cpuatomic.h b/cpukit/score/cpu/powerpc/rtems/score/cpuatomic.h
index 7588586..3001245 100644
--- a/cpukit/score/cpu/powerpc/rtems/score/cpuatomic.h
+++ b/cpukit/score/cpu/powerpc/rtems/score/cpuatomic.h
@@ -1,38 +1,14 @@
-/**
- * @file rtems/score/cpuatomic.h
+/*
+ * COPYRIGHT (c) 2012-2013 Deng Hengyi.
*
- * This include file implements the atomic operations for powerpc 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.
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
*/
#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 */
+#endif /* _RTEMS_SCORE_ATOMIC_CPU_H */
diff --git a/cpukit/score/cpu/sh/rtems/score/cpuatomic.h b/cpukit/score/cpu/sh/rtems/score/cpuatomic.h
index 635406b..3001245 100644
--- a/cpukit/score/cpu/sh/rtems/score/cpuatomic.h
+++ b/cpukit/score/cpu/sh/rtems/score/cpuatomic.h
@@ -1,38 +1,14 @@
-/**
- * @file rtems/score/cpuatomic.h
+/*
+ * COPYRIGHT (c) 2012-2013 Deng Hengyi.
*
- * This include file implements the atomic operations for sh 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.
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
*/
#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 */
+#endif /* _RTEMS_SCORE_ATOMIC_CPU_H */
diff --git a/cpukit/score/cpu/sparc/rtems/score/cpuatomic.h b/cpukit/score/cpu/sparc/rtems/score/cpuatomic.h
index 0010320..3001245 100644
--- a/cpukit/score/cpu/sparc/rtems/score/cpuatomic.h
+++ b/cpukit/score/cpu/sparc/rtems/score/cpuatomic.h
@@ -1,38 +1,14 @@
-/**
- * @file rtems/score/cpuatomic.h
+/*
+ * COPYRIGHT (c) 2012-2013 Deng Hengyi.
*
- * This include file implements the atomic operations for sparc 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.
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
*/
#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 */
+#endif /* _RTEMS_SCORE_ATOMIC_CPU_H */
diff --git a/cpukit/score/cpu/sparc64/rtems/score/cpuatomic.h b/cpukit/score/cpu/sparc64/rtems/score/cpuatomic.h
index c74d75c..3001245 100644
--- a/cpukit/score/cpu/sparc64/rtems/score/cpuatomic.h
+++ b/cpukit/score/cpu/sparc64/rtems/score/cpuatomic.h
@@ -1,38 +1,14 @@
-/**
- * @file rtems/score/cpuatomic.h
+/*
+ * COPYRIGHT (c) 2012-2013 Deng Hengyi.
*
- * 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.
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
*/
#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 */
+#endif /* _RTEMS_SCORE_ATOMIC_CPU_H */
diff --git a/cpukit/score/cpu/v850/rtems/score/cpuatomic.h b/cpukit/score/cpu/v850/rtems/score/cpuatomic.h
index 5143219..3001245 100644
--- a/cpukit/score/cpu/v850/rtems/score/cpuatomic.h
+++ b/cpukit/score/cpu/v850/rtems/score/cpuatomic.h
@@ -1,38 +1,14 @@
-/**
- * @file rtems/score/cpuatomic.h
+/*
+ * COPYRIGHT (c) 2012-2013 Deng Hengyi.
*
- * This include file implements the atomic operations for v850 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.
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
*/
#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 */
+#endif /* _RTEMS_SCORE_ATOMIC_CPU_H */
More information about the vc
mailing list