Changeset 438 for trunk/kernel/devices/dev_pic.c
- Timestamp:
- Apr 4, 2018, 2:49:02 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/devices/dev_pic.c
r437 r438 86 86 { 87 87 88 #if CONFIG_DEBUG_DEV_PIC89 uint32_t cycle = (uint32_t)hal_get_cycles(); 90 if( CONFIG_DEBUG_DEV_PIC < cycle )88 #if DEBUG_DEV_PIC 89 uint32_t cycle = (uint32_t)hal_get_cycles(); 90 if( DEBUG_DEV_PIC < cycle ) 91 91 printk("\n[DBG] %s : core[%x,%d] / src_chdev_cxy %x / src_chdev_ptr %x / cycle %d\n", 92 92 __FUNCTION__, local_cxy, lid, GET_CXY(src_chdev_xp), GET_PTR(src_chdev_xp), cycle ); … … 109 109 { 110 110 111 #if CONFIG_DEBUG_DEV_PIC112 uint32_t cycle = (uint32_t)hal_get_cycles(); 113 if( CONFIG_DEBUG_DEV_PIC < cycle )111 #if DEBUG_DEV_PIC 112 uint32_t cycle = (uint32_t)hal_get_cycles(); 113 if( DEBUG_DEV_PIC < cycle ) 114 114 printk("\n[DBG] %s : core[%x,%d] / src_chdev_cxy %x / src_chdev_ptr %x / cycle %d\n", 115 115 __FUNCTION__, local_cxy, lid, GET_CXY(src_chdev_xp), GET_PTR(src_chdev_xp), cycle ); … … 131 131 { 132 132 133 #if CONFIG_DEBUG_DEV_PIC134 uint32_t cycle = (uint32_t)hal_get_cycles(); 135 if( CONFIG_DEBUG_DEV_PIC < cycle )133 #if DEBUG_DEV_PIC 134 uint32_t cycle = (uint32_t)hal_get_cycles(); 135 if( DEBUG_DEV_PIC < cycle ) 136 136 printk("\n[DBG] %s : core[%x,%d] / period %d / cycle %d\n", 137 137 __FUNCTION__ , local_cxy , CURRENT_THREAD->core->lid , period, cycle ); … … 153 153 { 154 154 155 #if CONFIG_DEBUG_DEV_PIC156 uint32_t cycle = (uint32_t)hal_get_cycles(); 157 if( CONFIG_DEBUG_DEV_PIC < cycle )155 #if DEBUG_DEV_PIC 156 uint32_t cycle = (uint32_t)hal_get_cycles(); 157 if( DEBUG_DEV_PIC < cycle ) 158 158 printk("\n[DBG] %s : core[%x,%d] / cycle %d\n", 159 159 __FUNCTION__ , local_cxy , CURRENT_THREAD->core->lid , cycle ); … … 176 176 { 177 177 178 #if CONFIG_DEBUG_DEV_PIC179 uint32_t cycle = (uint32_t)hal_get_cycles(); 180 if( CONFIG_DEBUG_DEV_PIC < cycle )178 #if DEBUG_DEV_PIC 179 uint32_t cycle = (uint32_t)hal_get_cycles(); 180 if( DEBUG_DEV_PIC < cycle ) 181 181 printk("\n[DBG] %s : src_core[%x,%d] / dst_core[%x,%d] / cycle %d\n", 182 182 __FUNCTION__, local_cxy, CURRENT_THREAD->core->lid, cxy, lid, cycle ); … … 198 198 { 199 199 200 #if CONFIG_DEBUG_DEV_PIC201 uint32_t cycle = (uint32_t)hal_get_cycles(); 202 if( CONFIG_DEBUG_DEV_PIC < cycle )200 #if DEBUG_DEV_PIC 201 uint32_t cycle = (uint32_t)hal_get_cycles(); 202 if( DEBUG_DEV_PIC < cycle ) 203 203 printk("\n[DBG] %s : core[%x,%d] / cycle %d\n", 204 204 __FUNCTION__, local_cxy, CURRENT_THREAD->core->lid, cycle );
Note: See TracChangeset
for help on using the changeset viewer.