Changeset 689 for soft/giet_vm/giet_libs


Ignore:
Timestamp:
Aug 4, 2015, 11:42:57 AM (9 years ago)
Author:
alain
Message:

Introduce the giet_tasks-status() syscall.

Location:
soft/giet_vm/giet_libs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_libs/stdio.c

    r671 r689  
    9292{
    9393    sys_call( SYSCALL_CTX_SWITCH,
     94              0, 0, 0, 0 );
     95}
     96
     97////////////////////////
     98void giet_tasks_status()
     99{
     100    sys_call( SYSCALL_TASKS_STATUS,
    94101              0, 0, 0, 0 );
    95102}
     
    512519    }
    513520} // 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()
    540521
    541522/////////////////////////////////
  • soft/giet_vm/giet_libs/stdio.h

    r671 r689  
    2323#define SYSCALL_TTY_READ             0x03
    2424#define SYSCALL_TTY_ALLOC            0x04
    25 #define SYSCALL_TTY_GET_LOCK         0x05
    26 #define SYSCALL_TTY_RELEASE_LOCK     0x06
     25#define SYSCALL_TASKS_STATUS         0x05
     26//                                   0x06
    2727#define SYSCALL_HEAP_INFO            0x07
    2828#define SYSCALL_LOCAL_TASK_ID        0x08
     
    168168extern void giet_context_switch();
    169169
     170extern void giet_tasks_status();
     171
    170172//////////////////////////////////////////////////////////////////////////
    171173//               Application related system calls
Note: See TracChangeset for help on using the changeset viewer.