Changeset 689 for soft/giet_vm/giet_libs
- Timestamp:
- Aug 4, 2015, 11:42:57 AM (9 years ago)
- Location:
- soft/giet_vm/giet_libs
- Files:
-
- 2 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 ///////////////////////////////// -
soft/giet_vm/giet_libs/stdio.h
r671 r689 23 23 #define SYSCALL_TTY_READ 0x03 24 24 #define SYSCALL_TTY_ALLOC 0x04 25 #define SYSCALL_T TY_GET_LOCK0x0526 #define SYSCALL_TTY_RELEASE_LOCK0x0625 #define SYSCALL_TASKS_STATUS 0x05 26 // 0x06 27 27 #define SYSCALL_HEAP_INFO 0x07 28 28 #define SYSCALL_LOCAL_TASK_ID 0x08 … … 168 168 extern void giet_context_switch(); 169 169 170 extern void giet_tasks_status(); 171 170 172 ////////////////////////////////////////////////////////////////////////// 171 173 // Application related system calls
Note: See TracChangeset
for help on using the changeset viewer.