Ignore:
Timestamp:
Dec 19, 2013, 9:36:48 AM (11 years ago)
Author:
alain
Message:

Introducing support for TSAR fixed format cluster index (cluster_xy)
We have now 4 parameters defined in map.xml:

  • X_WIDTH, Y_WIDTH define the fixed format (typically X_WIDTH = 4 / Y_WIDTH = 4)
  • X_SIZE, Y_SIZE define the actual TSAR 2D mesh variable size (from 1 to 16)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_common/utils.c

    r262 r263  
    1919
    2020// This global variable is allocated in the boot.c file or in kernel_init.c file
    21 extern static_scheduler_t* _schedulers[NB_CLUSTERS * NB_PROCS_MAX];
     21extern static_scheduler_t* _schedulers[X_SIZE * Y_SIZE * NB_PROCS_MAX];
    2222
    2323///////////////////////////////////////////////////////////////////////////////////
     
    565565    return (mapping_pseg_t *) ((char *) header +
    566566            MAPPING_HEADER_SIZE +
    567             MAPPING_CLUSTER_SIZE * header->clusters);
     567            MAPPING_CLUSTER_SIZE * X_SIZE * Y_SIZE);
    568568}
    569569/////////////////////////////////////////////////////////////////////////////
     
    572572    return (mapping_vspace_t *)  ((char *) header +
    573573            MAPPING_HEADER_SIZE +
    574             MAPPING_CLUSTER_SIZE * header->clusters +
     574            MAPPING_CLUSTER_SIZE * X_SIZE * Y_SIZE +
    575575            MAPPING_PSEG_SIZE * header->psegs);
    576576}
     
    580580    return (mapping_vseg_t *) ((char *) header +
    581581            MAPPING_HEADER_SIZE +
    582             MAPPING_CLUSTER_SIZE * header->clusters +
     582            MAPPING_CLUSTER_SIZE * X_SIZE * Y_SIZE +
    583583            MAPPING_PSEG_SIZE * header->psegs +
    584584            MAPPING_VSPACE_SIZE * header->vspaces);
     
    589589    return (mapping_vobj_t *) ((char *) header +
    590590            MAPPING_HEADER_SIZE +
    591             MAPPING_CLUSTER_SIZE * header->clusters +
     591            MAPPING_CLUSTER_SIZE * X_SIZE * Y_SIZE +
    592592            MAPPING_PSEG_SIZE * header->psegs +
    593593            MAPPING_VSPACE_SIZE * header->vspaces +
     
    599599    return (mapping_task_t *) ((char *) header +
    600600            MAPPING_HEADER_SIZE +
    601             MAPPING_CLUSTER_SIZE * header->clusters +
     601            MAPPING_CLUSTER_SIZE * X_SIZE * Y_SIZE +
    602602            MAPPING_PSEG_SIZE * header->psegs +
    603603            MAPPING_VSPACE_SIZE * header->vspaces +
     
    610610    return (mapping_proc_t *) ((char *) header +
    611611            MAPPING_HEADER_SIZE +
    612             MAPPING_CLUSTER_SIZE * header->clusters +
     612            MAPPING_CLUSTER_SIZE * X_SIZE * Y_SIZE +
    613613            MAPPING_PSEG_SIZE * header->psegs +
    614614            MAPPING_VSPACE_SIZE * header->vspaces +
     
    622622    return (mapping_irq_t *) ((char *) header +
    623623            MAPPING_HEADER_SIZE +
    624             MAPPING_CLUSTER_SIZE * header->clusters +
     624            MAPPING_CLUSTER_SIZE * X_SIZE * Y_SIZE +
    625625            MAPPING_PSEG_SIZE * header->psegs +
    626626            MAPPING_VSPACE_SIZE * header->vspaces +
     
    635635    return (mapping_coproc_t *) ((char *) header +
    636636            MAPPING_HEADER_SIZE +
    637             MAPPING_CLUSTER_SIZE * header->clusters +
     637            MAPPING_CLUSTER_SIZE * X_SIZE * Y_SIZE +
    638638            MAPPING_PSEG_SIZE * header->psegs +
    639639            MAPPING_VSPACE_SIZE * header->vspaces +
     
    649649    return (mapping_cp_port_t *) ((char *) header +
    650650            MAPPING_HEADER_SIZE +
    651             MAPPING_CLUSTER_SIZE * header->clusters +
     651            MAPPING_CLUSTER_SIZE * X_SIZE * Y_SIZE +
    652652            MAPPING_PSEG_SIZE * header->psegs +
    653653            MAPPING_VSPACE_SIZE * header->vspaces +
     
    664664    return (mapping_periph_t *) ((char *) header +
    665665            MAPPING_HEADER_SIZE +
    666             MAPPING_CLUSTER_SIZE * header->clusters +
     666            MAPPING_CLUSTER_SIZE * X_SIZE * Y_SIZE +
    667667            MAPPING_PSEG_SIZE * header->psegs +
    668668            MAPPING_VSPACE_SIZE * header->vspaces +
Note: See TracChangeset for help on using the changeset viewer.