Changeset 263 for soft/giet_vm/giet_common/utils.c
- Timestamp:
- Dec 19, 2013, 9:36:48 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_common/utils.c
r262 r263 19 19 20 20 // 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];21 extern static_scheduler_t* _schedulers[X_SIZE * Y_SIZE * NB_PROCS_MAX]; 22 22 23 23 /////////////////////////////////////////////////////////////////////////////////// … … 565 565 return (mapping_pseg_t *) ((char *) header + 566 566 MAPPING_HEADER_SIZE + 567 MAPPING_CLUSTER_SIZE * header->clusters);567 MAPPING_CLUSTER_SIZE * X_SIZE * Y_SIZE); 568 568 } 569 569 ///////////////////////////////////////////////////////////////////////////// … … 572 572 return (mapping_vspace_t *) ((char *) header + 573 573 MAPPING_HEADER_SIZE + 574 MAPPING_CLUSTER_SIZE * header->clusters+574 MAPPING_CLUSTER_SIZE * X_SIZE * Y_SIZE + 575 575 MAPPING_PSEG_SIZE * header->psegs); 576 576 } … … 580 580 return (mapping_vseg_t *) ((char *) header + 581 581 MAPPING_HEADER_SIZE + 582 MAPPING_CLUSTER_SIZE * header->clusters+582 MAPPING_CLUSTER_SIZE * X_SIZE * Y_SIZE + 583 583 MAPPING_PSEG_SIZE * header->psegs + 584 584 MAPPING_VSPACE_SIZE * header->vspaces); … … 589 589 return (mapping_vobj_t *) ((char *) header + 590 590 MAPPING_HEADER_SIZE + 591 MAPPING_CLUSTER_SIZE * header->clusters+591 MAPPING_CLUSTER_SIZE * X_SIZE * Y_SIZE + 592 592 MAPPING_PSEG_SIZE * header->psegs + 593 593 MAPPING_VSPACE_SIZE * header->vspaces + … … 599 599 return (mapping_task_t *) ((char *) header + 600 600 MAPPING_HEADER_SIZE + 601 MAPPING_CLUSTER_SIZE * header->clusters+601 MAPPING_CLUSTER_SIZE * X_SIZE * Y_SIZE + 602 602 MAPPING_PSEG_SIZE * header->psegs + 603 603 MAPPING_VSPACE_SIZE * header->vspaces + … … 610 610 return (mapping_proc_t *) ((char *) header + 611 611 MAPPING_HEADER_SIZE + 612 MAPPING_CLUSTER_SIZE * header->clusters+612 MAPPING_CLUSTER_SIZE * X_SIZE * Y_SIZE + 613 613 MAPPING_PSEG_SIZE * header->psegs + 614 614 MAPPING_VSPACE_SIZE * header->vspaces + … … 622 622 return (mapping_irq_t *) ((char *) header + 623 623 MAPPING_HEADER_SIZE + 624 MAPPING_CLUSTER_SIZE * header->clusters+624 MAPPING_CLUSTER_SIZE * X_SIZE * Y_SIZE + 625 625 MAPPING_PSEG_SIZE * header->psegs + 626 626 MAPPING_VSPACE_SIZE * header->vspaces + … … 635 635 return (mapping_coproc_t *) ((char *) header + 636 636 MAPPING_HEADER_SIZE + 637 MAPPING_CLUSTER_SIZE * header->clusters+637 MAPPING_CLUSTER_SIZE * X_SIZE * Y_SIZE + 638 638 MAPPING_PSEG_SIZE * header->psegs + 639 639 MAPPING_VSPACE_SIZE * header->vspaces + … … 649 649 return (mapping_cp_port_t *) ((char *) header + 650 650 MAPPING_HEADER_SIZE + 651 MAPPING_CLUSTER_SIZE * header->clusters+651 MAPPING_CLUSTER_SIZE * X_SIZE * Y_SIZE + 652 652 MAPPING_PSEG_SIZE * header->psegs + 653 653 MAPPING_VSPACE_SIZE * header->vspaces + … … 664 664 return (mapping_periph_t *) ((char *) header + 665 665 MAPPING_HEADER_SIZE + 666 MAPPING_CLUSTER_SIZE * header->clusters+666 MAPPING_CLUSTER_SIZE * X_SIZE * Y_SIZE + 667 667 MAPPING_PSEG_SIZE * header->psegs + 668 668 MAPPING_VSPACE_SIZE * header->vspaces +
Note: See TracChangeset
for help on using the changeset viewer.