Changeset 505 for trunk/hal/tsar_mips32/core/hal_atomic.c
- Timestamp:
- Aug 25, 2018, 6:28:53 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/core/hal_atomic.c
r457 r505 23 23 24 24 #include <hal_kernel_types.h> 25 #include <hal_atomic.h> 25 26 26 27 //////////////////////////////////// 27 28 void hal_atomic_and( uint32_t * ptr, 28 int32_tval )29 uint32_t val ) 29 30 { 30 31 asm volatile ( … … 43 44 /////////////////////////////////// 44 45 void hal_atomic_or( uint32_t * ptr, 45 int32_tval )46 uint32_t val ) 46 47 { 47 48 asm volatile ( … … 59 60 60 61 /////////////////////////////////////// 61 uint32_t hal_atomic_add( void* ptr,62 62 int32_t hal_atomic_add( void * ptr, 63 int32_t val ) 63 64 { 64 65 int32_t current; … … 106 107 /////////////////////////////////////////// 107 108 bool_t hal_atomic_test_set( uint32_t * ptr, 108 int32_tval )109 uint32_t val ) 109 110 { 110 111 return hal_atomic_cas( ptr , 0 , val );
Note: See TracChangeset
for help on using the changeset viewer.