Changeset 689 for soft/giet_vm/giet_libs/stdio.c
- Timestamp:
- Aug 4, 2015, 11:42:57 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_libs/stdio.c
r671 r689 92 92 { 93 93 sys_call( SYSCALL_CTX_SWITCH, 94 0, 0, 0, 0 ); 95 } 96 97 //////////////////////// 98 void giet_tasks_status() 99 { 100 sys_call( SYSCALL_TASKS_STATUS, 94 101 0, 0, 0, 0 ); 95 102 } … … 512 519 } 513 520 } // end giet_tty_printf() 514 515 ////////////////////////////////////////516 void giet_shr_printf( char* format, ...)517 {518 va_list args;519 volatile unsigned int sr_save;520 521 sys_call( SYSCALL_TTY_GET_LOCK,522 0,523 (unsigned int)&sr_save,524 0, 0 );525 526 va_start( args, format );527 int ret = __printf(format, 0, &args);528 va_end( args );529 530 sys_call( SYSCALL_TTY_RELEASE_LOCK,531 0,532 (unsigned int)&sr_save,533 0, 0 );534 535 if (ret)536 {537 giet_exit("error in giet_shr_printf()");538 }539 } // end giet_shr_printf()540 521 541 522 /////////////////////////////////
Note: See TracChangeset
for help on using the changeset viewer.