Changeset 200 for soft/giet_vm/libs


Ignore:
Timestamp:
Aug 12, 2012, 1:35:34 PM (12 years ago)
Author:
karaoui
Message:

+ removing some bugs from:

  • xml_parser.c: check that strcmp == 0 for coproc direction
  • mwmr_channel.c: mwmr->ptr to ptr.
  • utils.h double definition of memcpy fonction.

+ mapping_info.h : naming the enums
+ boot_init.c: changing the order of initialisation in order

to initialise the coproc with the mwmr channel values( depth, width...).
Note that the vobjs are now physically initialised.

+ mwmr_channel.h: changing the order argument definition to suit vci_mwmr_channel Soclib componnent.
+ hwr_mapping.h: adding the register description of the vci_mwmr_controller .

Location:
soft/giet_vm/libs
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/libs/mwmr_channel.c

    r195 r200  
    196196            for ( x = 0 ; x < nwords ; x++ ) 
    197197            {
    198                 buffer[x] = mwmr->data[mwmr->ptr];
     198                buffer[x] = mwmr->data[ptr];
    199199                if ( (ptr + 1) == depth ) ptr = 0;
    200200                else                      ptr = ptr + 1;
  • soft/giet_vm/libs/mwmr_channel.h

    r189 r200  
    1919    unsigned int        ptw;                    // index of the first empty slot
    2020    unsigned int        sts;                    // number of words available
     21    unsigned int        lock;                   // exclusive access lock
    2122    unsigned int        depth;                  // max number of words in the channel
    2223    unsigned int        width;                  // number of words in an item   
    23     unsigned int        lock;                   // exclusive access lock
    2424    unsigned int        data[1018];             // circular buffer
    2525} mwmr_channel_t;
  • soft/giet_vm/libs/srl.h

    r189 r200  
    77   @short SRL Api main header
    88 */
     9
     10#include "mapping_info.h"
     11#include "stdio.h"
     12#include "utils.h"
    913
    1014#include "libsrl/srl_public_types.h"
     
    1923#include "libsrl/srl_hw_helpers.h"
    2024
     25#include "libsrl/srl_args.h"
     26
    2127//kernel use!
    2228//#include "libsrl/srl_mwmr_sys.h"
    2329
    24 /* port, APP_NAME, TASK */
    25 # define GET_MWMR(port)                                                                       \
    26 ({                                                                                            \
    27     srl_mwmr_t  _mwmr;                                                                      \
    28     if( vobj_get_vbase( APP_NAME , #port, MWMR, (unsigned int*)&_mwmr ) )                   \
    29     {                                                                                         \
    30         srl_log_printf( NONE, "\n[ERROR] in "TASK" task :\n");                              \
    31         srl_log_printf( NONE, "          undefined <"#port"> channel: %d\n", _mwmr);           \
    32         srl_log_printf( TRACE, "*** &"#port" = %x\n\n", (unsigned int)_mwmr );                 \
    33         exit();/*srl?*/                                                                     \
    34     }else                                                                                         \
    35         srl_log_printf( TRACE, "%s:%d: arg of %s for %s,from %s; &"#port" = %x\n\n", __FILE__, __LINE__, APP_NAME, TASK,#port, (unsigned int)_mwmr ); \
    36     _mwmr;\
    37 })
    3830
    3931#endif
  • soft/giet_vm/libs/utils.h

    r189 r200  
    1313                unsigned int    size );
    1414
    15 void*   memcpy( void*                   dst,
    16                 int                             c,
    17                 unsigned int    size );
    18  
    1915#endif
    2016
Note: See TracChangeset for help on using the changeset viewer.