Changeset 437 for trunk/kernel/devices/dev_dma.c
- Timestamp:
- Mar 28, 2018, 2:40:29 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/devices/dev_dma.c
r408 r437 2 2 * dev_dma.c - DMA (Interrupt Controler Unit) generic device API implementation. 3 3 * 4 * Authors Alain Greiner (201 7)4 * Authors Alain Greiner (2016,2017,2018) 5 5 * 6 6 * Copyright (c) UPMC Sorbonne Universites … … 90 90 thread_t * this = CURRENT_THREAD; 91 91 92 dma_dmsg("\n[DBG] %s : enters for thread %x / dst = %l /src = %l / size = %x\n", 93 __FUNCTION__ , this->trdid , dst_xp , src_xp , size ); 92 #if CONGIG_DEBUG_DEV_DMA 93 uint32_t cycle = (uint32_t)hal_get_cycles(); 94 if( CONGIG_DEBUG_DEV_DMA < cycle ) 95 printk("\n[DBG] %s : thread %x enters / dst %l / src %l / size = %x\n", 96 __FUNCTION__ , this, dst_xp, src_xp, size ); 97 #endif 94 98 95 99 // select DMA channel corresponding to core lid … … 112 116 chdev_register_command( dev_xp ); 113 117 114 dma_dmsg("\n[DBG] %s : completes for thread %x / error = %d\n", 115 __FUNCTION__ , this->trdid , this->dma_cmd.error ); 118 #if CONGIG_DEBUG_DEV_DMA 119 cycle = (uint32_t)hal_get_cycles(); 120 if( CONGIG_DEBUG_DEV_DMA < cycle ) 121 printk("\n[DBG] %s : thread %x exit / dst %l / src %l / size = %x\n", 122 __FUNCTION__ , this, dst_xp, src_xp, size ); 123 #endif 116 124 117 125 // return I/O operation status from calling thread descriptor
Note: See TracChangeset
for help on using the changeset viewer.