Changeset 223 for soft/giet_vm
- Timestamp:
- Nov 13, 2012, 6:20:39 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/sys/drivers.c
r218 r223 645 645 646 646 // reset synchronization variables 647 _ioc_lock =0; 648 _ioc_done =0; 647 _ioc_done = 0; 648 asm volatile ("sync"); 649 _ioc_lock = 0; 649 650 650 651 return ret; … … 964 965 unsigned int task_id = _get_current_task_id(); 965 966 unsigned int dma_id = _get_context_slot( task_id, CTX_DMA_ID ); 967 unsigned int dma_ret; 966 968 967 969 // busy waiting with a pseudo random delay between bus access … … 1001 1003 1002 1004 // reset synchronization variables 1005 _dma_done[dma_id] = 0; 1006 dma_ret = dma_status[dma_id]; 1007 asm volatile("sync\n") 1003 1008 _dma_lock[dma_id] = 0; 1004 _dma_done[dma_id] = 0; 1005 1006 return _dma_status[dma_id]; 1009 1010 return dma_ret; 1007 1011 1008 1012 #else //NB_DMAS_MAX == 0
Note: See TracChangeset
for help on using the changeset viewer.