generic/atomic.c File Reference

#include <SysThread.h>
#include <asm/atomic.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <assert.h>
#include <pthread.h>

Functions

void __attribute__ ((constructor))
int32_t SysAtomicAdd32 (volatile int32_t *location, int32_t addvalue)
uint32_t SysAtomicAnd32 (volatile uint32_t *location, uint32_t andvalue)
uint32_t SysAtomicCompareAndSwap32 (volatile uint32_t *location, uint32_t oldvalue, uint32_t newvalue)
int32_t SysAtomicDec32 (volatile int32_t *location)
int32_t SysAtomicInc32 (volatile int32_t *location)
uint32_t SysAtomicOr32 (volatile uint32_t *location, uint32_t orvalue)
int32_t SysAtomicSub32 (volatile int32_t *location, int32_t subvalue)

Variables

pthread_mutex_t * mutexPtr


Function Documentation

void __attribute__ (constructor)   ) 
 

int32_t SysAtomicAdd32 volatile int32_t *  location,
int32_t  addvalue
 

uint32_t SysAtomicAnd32 volatile uint32_t *  location,
uint32_t  andvalue
 

uint32_t SysAtomicCompareAndSwap32 volatile uint32_t *  location,
uint32_t  oldvalue,
uint32_t  newvalue
 

int32_t SysAtomicDec32 volatile int32_t *  location  ) 
 

int32_t SysAtomicInc32 volatile int32_t *  location  ) 
 

uint32_t SysAtomicOr32 volatile uint32_t *  location,
uint32_t  orvalue
 

int32_t SysAtomicSub32 volatile int32_t *  location,
int32_t  subvalue
 


Variable Documentation

pthread_mutex_t* mutexPtr