Changes between Version 18 and Version 19 of Projects/GSoC/Atomic_Operations


Ignore:
Timestamp:
May 9, 2014, 3:29:09 PM (5 years ago)
Author:
André Marques
Comment:

Few text corrections

Legend:

Unmodified
Added
Removed
Modified
  • Projects/GSoC/Atomic_Operations

    v18 v19  
    117117
    118118
    119 The first part is a directory structure chart, atomic.h is API definition file and cpuatomic.h is implementation file.
     119The first part is a directory structure chart, atomic.h is API definition file and cpuatomic.h is an implementation file.
    120120
    121121 |---/cpukit
     
    142142              |       |                           ----cpu.h
    143143
    144 Becuase most of the implementation of atomic operations are assembly instructions, if not they could also be implemented with inlilne C source code. So i place the architecture-independent atomic API definitions to the atomic.h which is visible to other rtems components like score, dirver and etc. The architecture-dependent atomic implementations are placed to the cpuatomic.h which exists in every architecture-related directory as show above. The API is associated with implementations using method like this:
     144Most of the implementation of atomic operations are assembly instructions, if not they could also be implemented with inline C source code. So i place the architecture-independent atomic API definitions to the atomic.h which is visible to other rtems components like score, dirver and etc. The architecture-dependent atomic implementations are placed on the cpuatomic.h which exists in every architecture-related directory as show above. The API is associated with implementations using methods like this:
    145145for example, the atomic general load function API: int Atomic_Load_Acq_Int(volatile int *p)
    1461461. In the implementation file cpuatomic.h it will be implemented like this:
     
    155155Synopsis:
    156156
    157 The follow is atomic operation API definition in "rtems" style:
     157The following is an atomic operation API definition in "rtems" style:
    1581581. The atomic_store generic functions
    159159   void _Atomic_Store_Rel_<_type_>(volatile _type_ *p, _type_ v);