Changeset 712 for soft/giet_vm/applications/shell/shell.c
- Timestamp:
- Oct 7, 2015, 11:56:33 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/shell/shell.c
r708 r712 14 14 #define MAX_ARGS (32) 15 15 16 16 17 struct command_t 17 18 { … … 260 261 static void cmd_ps(int argc, char** argv) 261 262 { 262 giet_applications_status(); 263 if (argc == 1) 264 { 265 giet_applications_status( NULL ); 266 } 267 else 268 { 269 giet_applications_status( argv[1] ); 270 } 263 271 } 264 272 … … 272 280 } 273 281 274 int ret = giet_pthread_pause( argv[1] , argv[2] ); 275 276 if ( ret == -1 ) 277 { 278 giet_tty_printf(" error : vspace %s not found\n", argv[1] ); 279 } 280 if ( ret == -2 ) 281 { 282 giet_tty_printf(" error : thread %s not found\n", argv[2] ); 283 } 282 giet_pthread_control( THREAD_CMD_PAUSE , argv[1] , argv[2] ); 284 283 } 285 284 … … 293 292 } 294 293 295 int ret = giet_pthread_resume( argv[1] , argv[2] ); 296 297 if ( ret == -1 ) 298 { 299 giet_tty_printf(" error : vspace %s not found\n", argv[1] ); 300 } 301 if ( ret == -2 ) 302 { 303 giet_tty_printf(" error : thread %s not found\n", argv[2] ); 304 } 294 giet_pthread_control( THREAD_CMD_RESUME , argv[1] , argv[2] ); 305 295 } 306 296 … … 314 304 } 315 305 316 int ret = giet_pthread_context( argv[1] , argv[2] ); 317 318 if ( ret == -1 ) 319 { 320 giet_tty_printf(" error : vspace %s not found\n", argv[1] ); 321 } 322 if ( ret == -2 ) 323 { 324 giet_tty_printf(" error : thread %s not found\n", argv[2] ); 325 } 306 giet_pthread_control( THREAD_CMD_CONTEXT , argv[1] , argv[2] ); 326 307 } 327 308
Note: See TracChangeset
for help on using the changeset viewer.