Changeset 213 for soft/giet_vm/libs
- Timestamp:
- Aug 26, 2012, 8:16:34 PM (12 years ago)
- Location:
- soft/giet_vm/libs/libsrl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/libs/libsrl/srl_args.h
r178 r213 4 4 5 5 6 #define SRL_GET_MWMR(port) APP_GET_ARG(port, VOBJ_TYPE_MWMR)6 #define SRL_GET_MWMR(port) (srl_mwmr_t) APP_GET_ARG(port, VOBJ_TYPE_MWMR) 7 7 #define SRL_GET_BARRIER(port) APP_GET_ARG(port, VOBJ_TYPE_BARRIER) 8 8 #define SRL_GET_LOCK(port) APP_GET_ARG(port, VOBJ_TYPE_LOCK) 9 #define SRL_GET_BUFFER(port) APP_GET_ARG(port, VOBJ_TYPE_BUFFER) 9 //#define SRL_GET_MEMSPACE(port) APP_GET_ARG(port, VOBJ_TYPE_BUFFER) TODO 10 #define SRL_GET_MEMSPACE #error "SRL_GET_MEMSPACE is not implemented"// 10 11 11 12 12 /* port, APP_NAME, TASK, #task_name, alias */ 13 # define SRL_GET_ARG(task_name, port, type) \ 13 # define SRL_GET_VBASE(task_name, port, type) \ 14 14 ({ \ 15 srl_mwmr_t _mwmr;\16 if( giet_vobj_get_vbase( APP_NAME , alias_##task_name.port, type, (unsigned int*)&_mwmr ) )\15 unsigned int vbase; \ 16 if( giet_vobj_get_vbase( APP_NAME , alias_##task_name.port, type, &vbase ) ) \ 17 17 { \ 18 18 srl_log_printf( NONE, "\n[ERROR] in "#task_name" task :\n"); \ 19 19 srl_log_printf( NONE, " undefined port <"#port"> for channel(%s): %d\n", \ 20 alias_##task_name.port, _mwmr); \21 srl_log_printf( TRACE, "*** &"#port" = %x\n\n", (unsigned int)_mwmr );\20 alias_##task_name.port,vbase); \ 21 srl_log_printf( TRACE, "*** &"#port" = %x\n\n", vbase ); \ 22 22 srl_exit(); \ 23 23 }else \ 24 24 srl_log_printf( TRACE, "%s:%d: arg of %s for %s,from %s; &"#port" = %x\n\n", \ 25 __FILE__, __LINE__, APP_NAME, #task_name,#port, (unsigned int)_mwmr );\26 _mwmr;\25 __FILE__, __LINE__, APP_NAME, #task_name,#port, vbase ); \ 26 vbase;\ 27 27 }) 28 28 -
soft/giet_vm/libs/libsrl/srl_mwmr.h
r178 r213 6 6 typedef mwmr_channel_t* srl_mwmr_t; 7 7 8 #define srl_mwmr_write(a, b, c) mwmr_write(a, b,c)9 #define srl_mwmr_read(a, b, c) mwmr_read(a, b,c)8 #define srl_mwmr_write(a, b, c) mwmr_write(a, (unsigned int*) b, (unsigned int)c) 9 #define srl_mwmr_read(a, b, c) mwmr_read(a, (unsigned int*) b, (unsigned int)c) 10 10 11 11
Note: See TracChangeset
for help on using the changeset viewer.