Changeset 200 for soft/giet_vm/libs
- Timestamp:
- Aug 12, 2012, 1:35:34 PM (12 years ago)
- Location:
- soft/giet_vm/libs
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/libs/mwmr_channel.c
r195 r200 196 196 for ( x = 0 ; x < nwords ; x++ ) 197 197 { 198 buffer[x] = mwmr->data[ mwmr->ptr];198 buffer[x] = mwmr->data[ptr]; 199 199 if ( (ptr + 1) == depth ) ptr = 0; 200 200 else ptr = ptr + 1; -
soft/giet_vm/libs/mwmr_channel.h
r189 r200 19 19 unsigned int ptw; // index of the first empty slot 20 20 unsigned int sts; // number of words available 21 unsigned int lock; // exclusive access lock 21 22 unsigned int depth; // max number of words in the channel 22 23 unsigned int width; // number of words in an item 23 unsigned int lock; // exclusive access lock24 24 unsigned int data[1018]; // circular buffer 25 25 } mwmr_channel_t; -
soft/giet_vm/libs/srl.h
r189 r200 7 7 @short SRL Api main header 8 8 */ 9 10 #include "mapping_info.h" 11 #include "stdio.h" 12 #include "utils.h" 9 13 10 14 #include "libsrl/srl_public_types.h" … … 19 23 #include "libsrl/srl_hw_helpers.h" 20 24 25 #include "libsrl/srl_args.h" 26 21 27 //kernel use! 22 28 //#include "libsrl/srl_mwmr_sys.h" 23 29 24 /* port, APP_NAME, TASK */25 # define GET_MWMR(port) \26 ({ \27 srl_mwmr_t _mwmr; \28 if( vobj_get_vbase( APP_NAME , #port, MWMR, (unsigned int*)&_mwmr ) ) \29 { \30 srl_log_printf( NONE, "\n[ERROR] in "TASK" task :\n"); \31 srl_log_printf( NONE, " undefined <"#port"> channel: %d\n", _mwmr); \32 srl_log_printf( TRACE, "*** &"#port" = %x\n\n", (unsigned int)_mwmr ); \33 exit();/*srl?*/ \34 }else \35 srl_log_printf( TRACE, "%s:%d: arg of %s for %s,from %s; &"#port" = %x\n\n", __FILE__, __LINE__, APP_NAME, TASK,#port, (unsigned int)_mwmr ); \36 _mwmr;\37 })38 30 39 31 #endif -
soft/giet_vm/libs/utils.h
r189 r200 13 13 unsigned int size ); 14 14 15 void* memcpy( void* dst,16 int c,17 unsigned int size );18 19 15 #endif 20 16
Note: See TracChangeset
for help on using the changeset viewer.