Changeset 296 for soft/giet_vm/giet_xml


Ignore:
Timestamp:
Mar 27, 2014, 6:39:27 PM (10 years ago)
Author:
alain
Message:

Bug fix in log messages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_xml/xml_parser.c

    r295 r296  
    321321
    322322#if XML_PARSER_DEBUG
    323 printf(" - found vseg %s with psegid = %d", vseg[vseg_id]->name, pseg_id );
     323printf(" - found vseg %s associated to pseg %d", vseg[vseg_id]->name, pseg_id );
    324324#endif
    325325
     
    12851285        else if (strcmp(str, "ISR_NIC_RX" ) == 0)  irq[irq_index]->isr = ISR_NIC_RX;
    12861286        else if (strcmp(str, "ISR_NIC_TX" ) == 0)  irq[irq_index]->isr = ISR_NIC_TX;
     1287        else if (strcmp(str, "ISR_MMC"    ) == 0)  irq[irq_index]->isr = ISR_MMC;
    12871288        else if (strcmp(str, "ISR_DEFAULT") == 0)  irq[irq_index]->isr = ISR_DEFAULT;
    12881289        else
    12891290        {
    12901291            printf("[XML ERROR] illegal IRQ <isr> for periph %d in cluster %d\n",
    1291                     cluster_index, periph_loc_index);
     1292                    periph_loc_index, cluster_index );
    12921293            exit(1);
    12931294        }
     
    17491750    periph[periph_index]->irq_offset = irq_index;
    17501751
    1751 #if XML_PARSER_DEBUG
    1752 printf("      irq_offset  = %d\n", irq_index );
    1753 #endif
    1754 
    17551752    ///////////// get IRQs
    17561753    int status = xmlTextReaderRead(reader);
     
    23222319    }
    23232320
     2321    /////////// get signature attribute
     2322    value = getIntValue(reader, "signature", &ok);
     2323    if ( ok && (value == IN_MAPPING_SIGNATURE) )
     2324    {
     2325#if XML_PARSER_DEBUG
     2326        printf("  signature = %x\n", value);
     2327#endif
     2328        header->signature = IN_MAPPING_SIGNATURE;
     2329    }
     2330    else
     2331    {
     2332        printf("[XML ERROR] illegal or missing <signature> for mapping %s\n",
     2333        header->name );
     2334        exit(1);
     2335    }
     2336
    23242337    /////////// get x_width attribute
    23252338    value = getIntValue(reader, "x_width", &ok);
     
    23902403    unsigned int y_io = getIntValue(reader, "y_io", &ok);
    23912404#if XML_PARSER_DEBUG
    2392         printf("  y_io      = %d\n", y_size);
     2405        printf("  y_io      = %d\n", y_io);
    23932406#endif
    23942407    if ( ok &&(y_io < y_size) )
     
    24402453    ///////// set other header fields
    24412454    header->increment = 0x10000;
    2442     header->signature = IN_MAPPING_SIGNATURE;
    24432455    header->globals   = 0;
    24442456    header->vspaces   = 0;
Note: See TracChangeset for help on using the changeset viewer.