Changes between Version 92 and Version 93 of library_stdio


Ignore:
Timestamp:
Jul 17, 2015, 6:31:11 PM (9 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • library_stdio

    v92 v93  
    366366This function stops execution of the calling task with a TTY message explaining the cause. The user task is descheduled and becomes not runable: it does not consume processor cycles anymore.
    367367
    368  === 2) void '''giet_assert'''( unsigned int condition, char* string ) ===
     368 === 2) void '''giet_kill_application'''( char* name ) ===
     369This function kill the application identified by the vspace '''name''' argument: All tasks are de-activated.
     370
     371 === 3) void '''giet_exec_application'''( char* name ) ===
     372This function starts execution of the the application identified by the vspace '''name''' argument:
     373The application code and data segment are loaded into memory from the .elf file on device.
     374For all tasks, the stack an heap are re-initialised.
     375
     376 === 4) void '''giet_assert'''( unsigned int condition, char* string ) ===
    369377This function uses the giet_exit() system call to kill the calling task if the condition is false.
    370378
    371  === 3) void '''giet_context_switch'''() ===
     379 === 5) void '''giet_context_switch'''() ===
    372380The user task calling this function is descheduled and the processor is allocated to another task.
    373381
    374  === 4) void '''giet_procs_number'''( unsigned int* x_size , unsigned int* y_size , unsigned int* nprocs ) ===
     382 === 6) void '''giet_procs_number'''( unsigned int* x_size , unsigned int* y_size , unsigned int* nprocs ) ===
    375383This function returns the actual number of processors in a clusterized 2D mesh architecture.
    376384 * '''x_size''' number of clusters containing processors in a row.
     
    378386 * '''nprocs''' number of processors per cluster.
    379387
    380  === 5) void '''giet_vseg_get_vbase'''( char* vspace_name, char*  vseg_name, unsigned int* vbase) ===
     388 === 7) void '''giet_vseg_get_vbase'''( char* vspace_name, char*  vseg_name, unsigned int* vbase) ===
    381389This function returns in argument ''vbase'' the virtual base address of a vseg defined in the mapping_info data structure. The vseg is identified by the two arguments ''vspace_name'' and ''vseg_name''. In case of error (such as undefined vspace or undefined vseg), it makes a giet_exit().
    382390
    383  === 6) void '''giet_vseg_get_length'''( char* vspace_name, char*  vseg_name, unsigned int* length) ===
     391 === 8) void '''giet_vseg_get_length'''( char* vspace_name, char*  vseg_name, unsigned int* length) ===
    384392This function returns in argument ''length'' the length (bytes) of a vseg defined in the mapping_info data structure. The vseg is identified by the two arguments ''vspace_name'' and ''vseg_name''. In case of error (such as undefined vspace or undefined vseg), it makes a giet_exit().
    385393
    386  === 7) void '''giet_heap_info'''( unsigned int* vaddr, unsigned int* length, unsigned int  x, unsigned int  y );
     394 === 9) void '''giet_heap_info'''( unsigned int* vaddr, unsigned int* length, unsigned int  x, unsigned int  y );
    387395This function supports access to the running task's heap or to a remote heap. If (x < X_SIZE) and (y < Y_SIZE), it returns the base address and length of the heap associated to any task running on cluster(x,y). Otherwise, it returns the base address and length of the heap associated to the calling task. In case of error (such as undefined heap segment in the selected cluster, it returns heap_size = 0).
    388396
    389  === 8) void '''giet_get_xy'''( void* ptr, unsigned int* px, unsigned int* py ) ===
     397 === 10) void '''giet_get_xy'''( void* ptr, unsigned int* px, unsigned int* py ) ===
    390398This function takes as input a virtual address (''ptr'' argument), and returns through the ''px,py'' arguments the coordinates of the cluster containing the physical address associated to ''ptr''. In case of error (unmapped virtual address), it makes a giet_exit().