Changeset 439


Ignore:
Timestamp:
Nov 3, 2014, 10:58:31 AM (10 years ago)
Author:
alain
Message:

Removing the use_tty, use_nic, use_tim, use_cma, etc.) in the mapping.
These static constructs are replaced by new system calls in the stdio library.

Location:
soft/giet_vm/giet_xml
Files:
3 edited

Legend:

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

    r409 r439  
    103103    PERIPH_TYPE_DMA       = 1,
    104104    PERIPH_TYPE_FBF       = 2,
    105     PERIPH_TYPE_ICU       = 3,
    106     PERIPH_TYPE_IOB       = 4,
    107     PERIPH_TYPE_IOC       = 5,
    108     PERIPH_TYPE_MMC       = 6,
    109     PERIPH_TYPE_MWR       = 7,
    110     PERIPH_TYPE_NIC       = 8,
    111     PERIPH_TYPE_ROM       = 9,
    112     PERIPH_TYPE_SIM       = 10,
    113     PERIPH_TYPE_TIM       = 11,
    114     PERIPH_TYPE_TTY       = 12,
    115     PERIPH_TYPE_XCU       = 13,
    116     PERIPH_TYPE_PIC       = 14,
    117 
    118     PERIPH_TYPE_MAX_VALUE = 15,
     105    PERIPH_TYPE_IOB       = 3,
     106    PERIPH_TYPE_IOC       = 4,
     107    PERIPH_TYPE_MMC       = 5,
     108    PERIPH_TYPE_MWR       = 6,
     109    PERIPH_TYPE_NIC       = 7,
     110    PERIPH_TYPE_ROM       = 8,
     111    PERIPH_TYPE_SIM       = 9,
     112    PERIPH_TYPE_TIM       = 10,
     113    PERIPH_TYPE_TTY       = 11,
     114    PERIPH_TYPE_XCU       = 12,
     115    PERIPH_TYPE_PIC       = 13,
     116
     117    PERIPH_TYPE_MAX_VALUE = 14,
    119118};
    120119
     
    237236    unsigned int    heap_vobj_id;    // global index for vobj containing heap
    238237    unsigned int    startid;         // index in start_vector
    239     unsigned int    use_tty;         // TTY channel required (global)
    240     unsigned int    use_nic;         // NIC channel required (global)
    241     unsigned int    use_cma;         // CMA channel required (global)
    242     unsigned int    use_hba;         // IOC channel required (global)
    243     unsigned int    use_tim;         // user timer required (local)
    244238} mapping_task_t;
    245239
  • soft/giet_vm/giet_xml/xml_driver.c

    r349 r439  
    7676        "DMA",
    7777        "FBF",
    78         "ICU",
    7978        "IOB",
    8079        "IOC",
     
    327326            fprintf(fpout, " arg=\"%d\" >\n",  periph[periph_id].arg);
    328327            if ( (periph[periph_id].type == PERIPH_TYPE_PIC) ||
    329                  (periph[periph_id].type == PERIPH_TYPE_XCU) ||
    330                  (periph[periph_id].type == PERIPH_TYPE_ICU) )
     328                 (periph[periph_id].type == PERIPH_TYPE_XCU) )
    331329            {
    332330                for (irq_id = periph[periph_id].irq_offset;
     
    454452            }
    455453            fprintf(fpout, " startid = \"%d\"", task[task_id].startid);
    456             if( task[task_id].use_tty ) fprintf(fpout, " usetty=\"1\"");
    457             if( task[task_id].use_nic ) fprintf(fpout, " usenic=\"1\"");
    458             if( task[task_id].use_cma ) fprintf(fpout, " usecma=\"1\"");
    459             if( task[task_id].use_tim ) fprintf(fpout, " usetim=\"1\"");
    460             if( task[task_id].use_hba ) fprintf(fpout, " usehba=\"1\"");
    461454            fprintf(fpout, " />\n");
    462455        }
  • soft/giet_vm/giet_xml/xml_parser.c

    r363 r439  
    714714    }
    715715
    716     /////////// get use_tty  attribute (optionnal : 0 if missing)
    717     value = getIntValue(reader, "usetty", &ok);
    718 #if XML_PARSER_DEBUG
    719 printf("      usetty = %x\n", value);
    720 #endif
    721     task[task_index]->use_tty = (ok)? value : 0;
    722 
    723     /////////// get use_nic  attribute (optionnal : 0 if missing)
    724     value = getIntValue(reader, "usenic", &ok);
    725 #if XML_PARSER_DEBUG
    726 printf("      usenic = %x\n", value);
    727 #endif
    728     task[task_index]->use_nic = (ok)? value : 0;
    729 
    730     /////////// get use_tim attribute (optionnal : 0 if missing)
    731     value = getIntValue(reader, "usetim", &ok);
    732 #if XML_PARSER_DEBUG
    733 printf("      usetim = %x\n", value);
    734 #endif
    735     task[task_index]->use_tim = (ok)? value : 0;
    736 
    737     /////////// get use_hba  attribute (optionnal : 0 if missing)
    738     value = getIntValue(reader, "usehba", &ok);
    739 #if XML_PARSER_DEBUG
    740 printf("      usehba = %x\n", value);
    741 #endif
    742     task[task_index]->use_hba = (ok)? value : 0;
    743 
    744     /////////// get usecma  attribute (optionnal : 0 if missing)
    745     value = getIntValue(reader, "usecma", &ok);
    746 #if XML_PARSER_DEBUG
    747 printf("      usecma = %x\n", value);
    748 #endif
    749     task[task_index]->use_cma = (ok)? value : 0;
    750 
    751716    task_index++;
    752717    task_loc_index++;
Note: See TracChangeset for help on using the changeset viewer.