- Timestamp:
- Aug 15, 2012, 10:22:29 AM (12 years ago)
- Location:
- soft/giet_vm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/boot/boot_init.c
r204 r205 1345 1345 #if BOOT_DEBUG_PERI 1346 1346 boot_puts("[BOOT] mwmr coproc initialisation of "); 1347 boot_put x((unsigned int) coproc[coproc_id].name);1347 boot_puts((unsigned int) coproc[coproc_id].name); 1348 1348 boot_puts(", nb ports"); 1349 1349 boot_putd((unsigned int)coproc[coproc_id].ports); … … 1355 1355 cp_port_id++ ) 1356 1356 { 1357 //FIXME: should the same for all ports: put it in the coproc1357 //FIXME: the vspace_id should be the same for all ports: put it in the coproc? 1358 1358 unsigned int vspace_id = cp_port[cp_port_id].vspaceid; 1359 1359 unsigned int vobj_id = cp_port[cp_port_id].vobjlocid + vspace[vspace_id].vobj_offset; -
soft/giet_vm/sys/drivers.c
r204 r205 72 72 73 73 #if !defined(NB_DMAS_MAX) 74 # error: You must define NB_DMAS_MAX in 'giet_config.h' file 75 #endif 76 77 #if (NB_DMAS_MAX < 1) 78 # error: NB_DMAS_MAX cannot be 0! 74 #define NB_DMAS_MAX 0 79 75 #endif 80 76 81 77 #if !defined(NB_TIMERS_MAX) 82 # error: You must define NB_TIMERS_MAX in 'giet_config.h' file78 #define NB_TIMERS_MAX 0 83 79 #endif 84 80 … … 718 714 ////////////////////////////////////////////////////////////////////////////////// 719 715 720 #if (NB_DMAS_MAX > 0) 721 in_unckdata unsigned int _dma_lock[ NB_DMAS_MAX* NB_CLUSTERS]722 = { [0 ... ( NB_DMAS_MAX* NB_CLUSTERS)-1] = 0 };723 724 in_unckdata volatile unsigned int _dma_done[ NB_DMAS_MAX* NB_CLUSTERS]725 = { [0 ... ( NB_DMAS_MAX* NB_CLUSTERS)-1] = 0 };726 727 in_unckdata volatile unsigned int _dma_status[ NB_DMAS_MAX* NB_CLUSTERS];716 //+1: for the case where the NB_DMAS_MAX == 0 717 in_unckdata unsigned int _dma_lock[(NB_DMAS_MAX+1) * NB_CLUSTERS] 718 = { [0 ... ((NB_DMAS_MAX+1) * NB_CLUSTERS)-1] = 0 }; 719 720 in_unckdata volatile unsigned int _dma_done[(NB_DMAS_MAX+1) * NB_CLUSTERS] 721 = { [0 ... ((NB_DMAS_MAX+1) * NB_CLUSTERS)-1] = 0 }; 722 723 in_unckdata volatile unsigned int _dma_status[(NB_DMAS_MAX+1) * NB_CLUSTERS]; 728 724 729 725 in_unckdata unsigned int _dma_iommu_ix1 = 1; 730 726 731 in_unckdata unsigned int _dma_iommu_npages[NB_DMAS_MAX * NB_CLUSTERS]; 732 #endif 727 in_unckdata unsigned int _dma_iommu_npages[(NB_DMAS_MAX+1) * NB_CLUSTERS]; 733 728 734 729 //////////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset
for help on using the changeset viewer.