diff options
Diffstat (limited to 'cpukit/score/cpu/sh/rtems/score/cpuatomic.h')
-rw-r--r-- | cpukit/score/cpu/sh/rtems/score/cpuatomic.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/cpukit/score/cpu/sh/rtems/score/cpuatomic.h b/cpukit/score/cpu/sh/rtems/score/cpuatomic.h index 78b62ff1ba..635406bc0d 100644 --- a/cpukit/score/cpu/sh/rtems/score/cpuatomic.h +++ b/cpukit/score/cpu/sh/rtems/score/cpuatomic.h @@ -1,20 +1,17 @@ /** * @file rtems/score/cpuatomic.h * - * This include file implements the atomic operations for SH and defines + * 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 use a generic atomic ops using disable/enable-IRQ simulated. If the - * the architecture works at SMP mode, most of the parts of implementations - * are imported from FreeBSD kernel. + * will not define atomic ops. If the architecture works at SMP mode, most of + * the parts of implementations are based on stdatomic.h. */ #ifndef _RTEMS_SCORE_ATOMIC_CPU_H #define _RTEMS_SCORE_ATOMIC_CPU_H -#include <rtems/score/genericcpuatomic.h> - #ifdef __cplusplus extern "C" { #endif @@ -27,8 +24,9 @@ extern "C" { /**@{*/ #if !defined(RTEMS_SMP) -#include <rtems/score/genericatomicops.h> +# error "Now atomic implementation only supports SMP mode." #else +#include <rtems/score/cpustdatomic.h> #endif #ifdef __cplusplus |