Changeset 200 for soft/giet_vm/xml


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/xml
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/xml/mapping_info.h

    r189 r200  
    5050#define OUT_MAPPING_SIGNATURE   0xBABEF00D
    5151
    52 enum
     52enum vobjType
    5353{
    5454    VOBJ_TYPE_ELF     = 0,     // loadable code/data object of elf files
     
    6262};
    6363
    64 enum
     64enum psegType
    6565{
    6666    PSEG_TYPE_RAM     = 0,
     
    6969};
    7070
    71 enum
     71enum periphType
    7272{
    7373    PERIPH_TYPE_IOC   = 0,
     
    8080};
    8181
    82 enum
     82enum mwmrPortDirection
    8383{
    8484    PORT_TO_COPROC    = 0,          // status register
     
    214214{
    215215    char            name[32];       // coprocessor name
    216     unsigned int    psegid;         // pseg index in cluster
     216    unsigned int    psegid;         // global pseg index
    217217    unsigned int    ports;          // number of MWMR ports used by coprocessor
    218218    unsigned int    port_offset;    // index of first MWMR port used by coprocessor
  • soft/giet_vm/xml/xml_parser.c

    r189 r200  
    250250printf("      direction = %s\n", str);
    251251#endif
    252         if      ( strcmp(str, "TO_COPROC")   ) cp_port[cp_port_index]->direction = PORT_TO_COPROC;
    253         else if ( strcmp(str, "FROM_COPROC") ) cp_port[cp_port_index]->direction = PORT_FROM_COPROC;
     252        if      ( strcmp(str, "TO_COPROC")   ==  0 ) cp_port[cp_port_index]->direction = PORT_TO_COPROC;
     253        else if ( strcmp(str, "FROM_COPROC") ==  0 ) cp_port[cp_port_index]->direction = PORT_FROM_COPROC;
    254254        else
    255255        {
     
    18741874{
    18751875    unsigned int i;
     1876    //asign for all cp_ports the correct vspaceid and vobjid
    18761877    for(i=0; i< cp_port_index; i++)
    18771878    {
Note: See TracChangeset for help on using the changeset viewer.