From 9b605b28b497f398682a8ffd673f6860340957f8 Mon Sep 17 00:00:00 2001 From: WeiY Date: Wed, 24 Apr 2013 00:34:16 +0800 Subject: Using the generic atomic ops to implement UP mode atomic for all architectures. SMP atomic port will be later. --- cpukit/score/cpu/mips/rtems/score/cpuatomic.h | 40 +++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 cpukit/score/cpu/mips/rtems/score/cpuatomic.h (limited to 'cpukit/score/cpu/mips/rtems') diff --git a/cpukit/score/cpu/mips/rtems/score/cpuatomic.h b/cpukit/score/cpu/mips/rtems/score/cpuatomic.h new file mode 100644 index 0000000000..8de5a55d8e --- /dev/null +++ b/cpukit/score/cpu/mips/rtems/score/cpuatomic.h @@ -0,0 +1,40 @@ +/** + * @file rtems/score/cpuatomic.h + * + * 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 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. + */ + +#ifndef _RTEMS_SCORE_ATOMIC_CPU_H +#define _RTEMS_SCORE_ATOMIC_CPU_H + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * @defgroup RTEMS atomic implementation + * + */ + +/**@{*/ + +#if !defined(RTEMS_SMP) +#include +#else +#endif + +#ifdef __cplusplus +} +#endif + +/**@}*/ +#endif +/* end of include file */ -- cgit v1.2.3