Ignore:
Timestamp:
Oct 7, 2015, 11:58:24 AM (9 years ago)
Author:
alain
Message:

Introduce the giet_fbf_size() and giet_fbf_alloc() system calls.

File:
1 edited

Legend:

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

    r709 r713  
    2424#define SYSCALL_GET_XY               0x03
    2525//                                   0x04
    26 //                                   0x05
    27 //                                   0x06
     26#define SYSCALL_VOBJ_GET_VBASE       0x05
     27#define SYSCALL_VOBJ_GET_LENGTH      0x06
    2828#define SYSCALL_HEAP_INFO            0x07
    29 #define SYSCALL_VOBJ_GET_VBASE       0x08
    30 #define SYSCALL_VOBJ_GET_LENGTH      0x09
     29#define SYSCALL_FBF_SIZE             0x08
     30#define SYSCALL_FBF_ALLOC            0x09
    3131#define SYSCALL_FBF_CMA_ALLOC        0x0A
    3232#define SYSCALL_FBF_CMA_INIT_BUF     0x0B
     
    8686#define SYSCALL_COPROC_RUN           0x3E
    8787#define SYSCALL_COPROC_RELEASE       0x3F
     88
     89////////////////////////////////////////////////////////////////////////////
     90// Define the error codes for the syscall handlers
     91// These define must be synchronized with values in the sys_handler.h file
     92////////////////////////////////////////////////////////////////////////////
     93
     94#define SYSCALL_OK                               ( 0 )
     95#define SYSCALL_VSPACE_NOT_FOUND                 (-1 )
     96#define SYSCALL_THREAD_NOT_FOUND                 (-2 )
     97#define SYSCALL_NOT_IN_SAME_VSPACE               (-3 )
     98#define SYSCALL_UNCOHERENT_THREAD_CONTEXT        (-4 )
     99#define SYSCALL_ILLEGAL_THREAD_COMMAND_TYPE      (-5 )
     100#define SYSCALL_CANNOT_LOAD_DATA_SEGMENT         (-6 )
     101#define SYSCALL_THREAD_ALREADY_ACTIVE            (-7 )
     102#define SYSCALL_MAIN_NOT_FOUND                   (-8 )
     103#define SYSCALL_APPLI_CANNOT_BE_KILLED           (-9 )
     104#define SYSCALL_PTHREAD_ARGUMENT_NOT_SUPPORTED   (-10)
     105#define SYSCALL_ILLEGAL_CLUSTER_COORDINATES      (-11)
     106#define SYSCALL_VSEG_NOT_FOUND                   (-12)
     107#define SYSCALL_UNDEFINED_SYSTEM_CALL            (-13)
     108#define SYSCALL_COPROCESSOR_NOT_FOUND            (-14)
     109#define SYSCALL_COPROCESSOR_ILLEGAL_MODE         (-15)
     110#define SYSCALL_COPROCESSOR_NON_ALLOCATED        (-16)
     111#define SYSCALL_CHANNEL_ALREADY_ALLOCATED        (-17)
     112#define SYSCALL_NO_CHANNEL_AVAILABLE             (-18)
     113#define SYSCALL_CHANNEL_NON_ALLOCATED            (-19)
     114#define SYSCALL_ILLEGAL_XY_ARGUMENTS             (-20)
     115#define SYSCALL_OUT_OF_KERNEL_HEAP_MEMORY        (-21)
     116#define SYSCALL_ADDRESS_NON_ALIGNED              (-22)
     117#define SYSCALL_ADDRESS_NON_USER_ACCESSIBLE      (-23)
     118#define SYSCALL_MISSING_INITIALISATION           (-24)
     119#define SYSCALL_SHARED_PERIPHERAL_BUSY           (-25)
     120
     121////////////////////////////////////////////////////////////////////////////
     122// Command values for the giet_pthread_control() syscall
     123// These define must be synchronized with values in the sys_handler.h file
     124////////////////////////////////////////////////////////////////////////////
     125
     126#define THREAD_CMD_PAUSE        0
     127#define THREAD_CMD_RESUME       1
     128#define THREAD_CMD_CONTEXT      2
    88129
    89130////////////////////////////////////////////////////////////////////////////
     
    178219                                 char*        string );
    179220
    180 extern int giet_pthread_pause( char*      vspace,
    181                                char*      thread );
    182 
    183 extern int giet_pthread_resume( char*      vspace,
    184                                 char*      thread );
    185 
    186 extern int giet_pthread_context( char*      vspace,
    187                                  char*      thread );
     221extern void giet_pthread_control( unsigned int command,
     222                                  char*        vspace_name,
     223                                  char*        thread_name );
    188224
    189225//////////////////////////////////////////////////////////////////////////
     
    195231extern int giet_exec_application( char* name );
    196232
    197 extern void giet_applications_status();
     233extern void giet_applications_status( char* name );
    198234
    199235//////////////////////////////////////////////////////////////////////////
     
    252288//////////////////////////////////////////////////////////////////////////
    253289
     290extern void giet_fbf_size();
     291
     292extern void giet_fbf_alloc();
     293
    254294extern void giet_fbf_cma_alloc();
    255295
Note: See TracChangeset for help on using the changeset viewer.