Changeset 735 for soft/giet_vm/giet_libs/stdio.c
- Timestamp:
- Dec 3, 2015, 4:38:59 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_libs/stdio.c
r722 r735 178 178 179 179 /////////////////////////////////////////////////// 180 void giet_coproc_alloc( unsigned int coproc_type, 180 void giet_coproc_alloc( unsigned int cluster_xy, 181 unsigned int coproc_type, 181 182 unsigned int* coproc_info ) 182 183 { 183 184 if ( sys_call( SYSCALL_COPROC_ALLOC, 185 cluster_xy, 184 186 coproc_type, 185 187 (unsigned int)coproc_info, 186 0 , 0) )188 0 ) ) 187 189 giet_pthread_exit("error in giet_coproc_alloc()"); 188 190 } 189 191 190 ///////////////////////////////////////////////////////// 191 void giet_coproc_release( unsigned int coproc_reg_index ) 192 ////////////////////////////////////////////////// 193 void giet_coproc_release( unsigned int cluster_xy, 194 unsigned int coproc_type ) 192 195 { 193 196 if ( sys_call( SYSCALL_COPROC_RELEASE, 194 coproc_reg_index, 195 0, 0, 0 ) ) 197 cluster_xy, 198 coproc_type, 199 0 , 0 ) ) 196 200 giet_pthread_exit("error in giet_coproc_release()"); 197 201 } 198 202 199 203 ////////////////////////////////////////////////////////////////// 200 void giet_coproc_channel_init( unsigned int channel, 204 void giet_coproc_channel_init( unsigned int cluster_xy, 205 unsigned int coproc_type, 206 unsigned int channel, 201 207 giet_coproc_channel_t* desc ) 202 208 { 203 209 if ( sys_call( SYSCALL_COPROC_CHANNEL_INIT, 210 cluster_xy, 211 coproc_type, 204 212 channel, 205 (unsigned int)desc, 206 0, 0 ) ) 213 (unsigned int)desc ) ) 207 214 giet_pthread_exit("error in giet_coproc_channel_init()"); 208 215 } 209 216 210 ///////////////////////////////////////////////////// 211 void giet_coproc_run( unsigned int coproc_reg_index ) 217 ////////////////////////////////////////////// 218 void giet_coproc_run( unsigned int cluster_xy, 219 unsigned int coproc_type ) 212 220 { 213 221 if ( sys_call( SYSCALL_COPROC_RUN, 214 coproc_reg_index, 215 0, 0, 0 ) ) 222 cluster_xy, 223 coproc_type, 224 0 , 0 ) ) 216 225 giet_pthread_exit("error in giet_coproc_run()"); 217 226 } 218 227 219 //////////////////////////// 220 void giet_coproc_completed() 228 //////////////////////////////////////////////////// 229 void giet_coproc_completed( unsigned int cluster_xy, 230 unsigned int coproc_type ) 221 231 { 222 232 if ( sys_call( SYSCALL_COPROC_COMPLETED, 223 0, 0, 0, 0 ) ) 233 cluster_xy, 234 coproc_type, 235 0 , 0 ) ) 224 236 giet_pthread_exit("error in giet_coproc_completed"); 225 237 }
Note: See TracChangeset
for help on using the changeset viewer.