Changeset 505 for trunk/hal/tsar_mips32
- Timestamp:
- Aug 25, 2018, 6:28:53 PM (6 years ago)
- Location:
- trunk/hal/tsar_mips32/core
- Files:
-
- 3 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 ); -
trunk/hal/tsar_mips32/core/hal_exception.c
r492 r505 38 38 #include <hal_kentry.h> 39 39 40 #include <hal_exception.h> 40 41 41 42 ////////////////////////////////////////////////////////////////////////////////////////// -
trunk/hal/tsar_mips32/core/hal_user.c
r481 r505 22 22 */ 23 23 24 #include <hal_user.h> 24 25 25 26 ///////////////////////////////////////////// 26 inline int hal_user_syscall( int service_num,27 int arg0,28 int arg1,29 int arg2,30 int arg3 )27 inline int hal_user_syscall( reg_t service_num, 28 reg_t arg0, 29 reg_t arg1, 30 reg_t arg2, 31 reg_t arg3 ) 31 32 { 32 33 register int num_and_ret __asm__("v0") = service_num;
Note: See TracChangeset
for help on using the changeset viewer.