base/include/asm-ppc/rtai_atomic.h File Reference

#include <asm/atomic.h>

Include dependency graph for rtai_atomic.h:

Include dependency graph

Go to the source code of this file.

Defines

#define SMP_SYNC   ""
#define SMP_ISYNC
#define PPC405_ERR77(ra, rb)
#define atomic_dec_and_test(v)   (atomic_dec_return((v)) == 0)
#define __HAVE_ARCH_CMPXCHG   1
#define cmpxchg(ptr, o, n)
#define atomic_cmpxchg(ptr, o, n)   cmpxchg(ptr,o,n)

Functions

__inline__ void atomic_inc (atomic_t *v)
__inline__ int atomic_dec_return (atomic_t *v)
__inline__ unsigned long __cmpxchg_u32 (volatile int *p, int old, int new)
__inline__ unsigned long __cmpxchg (volatile void *ptr, unsigned long old, unsigned long new, int size)


Define Documentation

#define __HAVE_ARCH_CMPXCHG   1
 

Definition at line 88 of file rtai_atomic.h.

#define atomic_cmpxchg ptr,
o,
 )     cmpxchg(ptr,o,n)
 

Definition at line 135 of file rtai_atomic.h.

Referenced by rt_scb_init(), rt_set_heap(), rt_spl_lock(), rt_spl_lock_if(), rt_spl_lock_timed(), and rtf_create().

#define atomic_dec_and_test  )     (atomic_dec_return((v)) == 0)
 

Definition at line 86 of file rtai_atomic.h.

Referenced by pthread_mutex_close_rt(), pthread_rwlock_close_rt(), rtai_critical_enter(), rtf_destroy(), and sem_close_rt().

#define cmpxchg ptr,
o,
 ) 
 

Value:

({ \ __typeof__(*(ptr)) _o_ = (o); \ __typeof__(*(ptr)) _n_ = (n); \ (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \ (unsigned long)_n_, sizeof(*(ptr))); \ })
Definition at line 127 of file rtai_atomic.h.

Referenced by soft_rt_socket().

#define PPC405_ERR77 ra,
rb   ) 
 

Definition at line 50 of file rtai_atomic.h.

Referenced by __cmpxchg_u32(), atomic_dec_return(), and atomic_inc().

#define SMP_ISYNC
 

Definition at line 41 of file rtai_atomic.h.

Referenced by atomic_dec_return().

#define SMP_SYNC   ""
 

Definition at line 40 of file rtai_atomic.h.


Function Documentation

__inline__ unsigned long __cmpxchg volatile void *  ptr,
unsigned long  old,
unsigned long  new,
int  size
[static]
 

Definition at line 114 of file rtai_atomic.h.

References __cmpxchg_u32().

Here is the call graph for this function:

__inline__ unsigned long __cmpxchg_u32 volatile int *  p,
int  old,
int  new
[static]
 

Definition at line 91 of file rtai_atomic.h.

References PPC405_ERR77.

Referenced by __cmpxchg().

__inline__ int atomic_dec_return atomic_t *  v  )  [static]
 

Definition at line 68 of file rtai_atomic.h.

References PPC405_ERR77, and SMP_ISYNC.

__inline__ void atomic_inc atomic_t *  v  )  [static]
 

Definition at line 53 of file rtai_atomic.h.

References PPC405_ERR77.

Referenced by pthread_mutex_open_rt(), rt_Trigger(), rt_trigger(), rtai_critical_exit(), rtf_create(), sem_open_rt(), and set_rtext().


Generated on Thu Nov 20 11:52:03 2008 for RTAI API by doxygen 1.3.8