Changeset 230 for soft/giet_vm/libs
- Timestamp:
- Feb 22, 2013, 4:03:48 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/libs/libsrl/srl_args.h
r228 r230 7 7 #define SRL_GET_BARRIER(port) (srl_barrier_t) 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_CONST(port) APP_GET_ARG(port, VOBJ_TYPE_CONST)10 9 #define SRL_GET_MEMSPACE(port) (srl_memspace_t) APP_GET_ARG(port, VOBJ_TYPE_MEMSPACE) 11 10 … … 14 13 ({ \ 15 14 unsigned int vbase; \ 16 if (giet_vobj_get_vbase(APP_NAME , a lias_##task_name.port, type, &vbase))\15 if (giet_vobj_get_vbase(APP_NAME , args->port, type, &vbase)) \ 17 16 { \ 18 17 srl_log_printf(NONE, "\n[ERROR] in "#task_name" task :\n"); \ 19 18 srl_log_printf(NONE, " undefined port <"#port"> for channel \"%s\": %x\n", \ 20 a lias_##task_name.port, vbase);\19 args->port, vbase); \ 21 20 srl_log_printf(TRACE, "*** &"#port" = %x\n\n", vbase); \ 22 21 srl_exit(); \ … … 29 28 30 29 30 #define SRL_GET_CONST(port) \ 31 ({ \ 32 unsigned int vbase; \ 33 if (giet_vobj_get_vbase(APP_NAME, args->port, VOBJ_TYPE_CONST, &vbase)) { \ 34 srl_log_printf(NONE, "\n[ERROR] in some task :\n"); \ 35 srl_log_printf(NONE, " undefined port <"#port"> for channel \"%s\": %x\n", \ 36 args->port, vbase); \ 37 srl_log_printf(TRACE, "*** &"#port" = %x\n\n", vbase); \ 38 srl_exit(); \ 39 } \ 40 else \ 41 srl_log_printf(TRACE, "%s:%d: arg of %s, from %s; &"#port" = %x\n\n", \ 42 __FILE__, __LINE__, APP_NAME, #port, vbase); \ 43 *(int *) vbase; \ 44 }) 45 31 46 32 47 #endif
Note: See TracChangeset
for help on using the changeset viewer.