Changes between Version 111 and Version 112 of library_stdio


Ignore:
Timestamp:
Sep 15, 2015, 6:23:30 PM (10 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • library_stdio

    v111 v112  
    11= GIET_VM / User-Level System Calls =
    22
    3 The  [source:soft/giet_vm/giet_libs/stdio.c stdio.c] and [source:soft/giet_vm/giet_libs/stdio.h stdio.h] files  define all system calls provided to user applications by the GIET-VM. They are generally prefixed by ''giet_''.
     3The  [source:soft/giet_vm/giet_libs/stdio.c stdio.c] and [source:soft/giet_vm/giet_libs/stdio.h stdio.h] files  define all system calls provided to user applications by the GIET-VM. System calls are prefixed by ''giet_''.
    44
    55[[PageOutline]]
     
    1313These system calls access the MIPS32 protected registers CP0_PROCID and CP0_TIME.
    1414
    15  === 1) void '''giet_proc_xyp'''( unsigned int* cluster_x, unsigned int* cluster_y unsigned int* lpid )===
    16 This function returns the processor identifiers (X,Y,P) from the wired global processor index in CP0_PROCID.
    17  * cluster_x : X cluster coordinate
    18  * cluster_y : Y cluster coordinate
    19  * lpid : local processor index
    20 No error possible, as the fixed format is  gpid = ( ( cluster_x << Y_WIDTH + cluster_y ) << P_WIDTH ) + lpid
     15 === 1) void '''giet_proc_xyp'''( unsigned int* cluster_x, unsigned int* cluster_y unsigned int* p )===
     16This function returns the processor identifiers (x,y,p) from the wired global processor index in CP0_PROCID.
     17 The <x> and <y> arguments are the the cluster coordinates. The <p> argument is the processor local index.
     18The format is CP0_PROCID = ( ( cluster_x << Y_WIDTH + cluster_y ) << P_WIDTH ) + lpid
    2119
    2220 === 2) unsigned int '''giet_proctime'''() ===
    2321This function returns the local processor time from the CP0_TIME register (number of cycles from reset).
    24 No error possible, as the processor implements a 32 bits wrapping register.
     22The processor implements a 32 bits wrapping register.
    2523 
    2624 === 3) unsigned int '''giet_rand'''() ===
    2725This function returns a pseudo-random value derived from both the CP0_PROCID and CP0_TIME registers.
    28 No error possible, as the return value is always between 0 & 65535.
     26The value is always between 0 & 65535.
    2927
    3028