Changeset 437 for trunk/kernel/devices/dev_mmc.c
- Timestamp:
- Mar 28, 2018, 2:40:29 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/devices/dev_mmc.c
r407 r437 2 2 * dev_mmc.c - MMC (Memory Cache Controler) generic device API implementation. 3 3 * 4 * Author Alain Greiner (2016 )4 * Author Alain Greiner (2016,2017,2018) 5 5 * 6 6 * Copyright (c) UPMC Sorbonne Universites … … 99 99 thread_t * this = CURRENT_THREAD; 100 100 101 mmc_dmsg("\n[DBG] %s enters for thread %x in process %x / buf_xp = %l\n", 102 __FUNCTION__ , this->trdid , this->process->pid , buf_xp ); 101 #if CONFIG_DEBUG_DEV_MMC 102 uint32_t cycle = (uint32_t)hal_get_cycles(); 103 if( CONFIG_DEBUG_DEV_MMC < cycle ) 104 printk("\n[DBG] %s : thread %x enters / process %x / buf_xp = %l\n", 105 __FUNCTION__, this, this->process->pid , buf_xp ); 106 #endif 103 107 104 108 // get buffer cluster and local pointer … … 124 128 error = dev_mmc_access( this ); 125 129 126 mmc_dmsg("\n[DBG] %s completes for thread %x in process %x / error = %d\n", 127 __FUNCTION__ , this->trdid , this->process->pid , error ); 130 #if CONFIG_DEBUG_DEV_MMC 131 cycle = (uint32_t)hal_get_cycles(); 132 if( CONFIG_DEBUG_DEV_MMC < cycle ) 133 printk("\n[DBG] %s : thread %x exit / process %x / buf_xp = %l\n", 134 __FUNCTION__, this, this->process->pid , buf_xp ); 135 #endif 128 136 129 137 return error; … … 139 147 thread_t * this = CURRENT_THREAD; 140 148 141 mmc_dmsg("\n[DBG] %s enters for thread %x in process %x / buf_xp = %l\n", 142 __FUNCTION__ , this->trdid , this->process->pid , buf_xp ); 149 #if CONFIG_DEBUG_DEV_MMC 150 uint32_t cycle = (uint32_t)hal_get_cycles(); 151 if( CONFIG_DEBUG_DEV_MMC < cycle ) 152 printk("\n[DBG] %s : thread %x enters / process %x / buf_xp = %l\n", 153 __FUNCTION__, this, this->process->pid , buf_xp ); 154 #endif 143 155 144 156 // get buffer cluster and local pointer … … 164 176 error = dev_mmc_access( this ); 165 177 166 mmc_dmsg("\n[DBG] %s completes for thread %x in process %x / error = %d\n", 167 __FUNCTION__ , this->trdid , this->process->pid , error ); 178 #if CONFIG_DEBUG_DEV_MMC 179 cycle = (uint32_t)hal_get_cycles(); 180 if( CONFIG_DEBUG_DEV_MMC < cycle ) 181 printk("\n[DBG] %s : thread %x exit / process %x / buf_xp = %l\n", 182 __FUNCTION__, this, this->process->pid , buf_xp ); 183 #endif 168 184 169 185 return error;
Note: See TracChangeset
for help on using the changeset viewer.