Changeset 437 for trunk/kernel/devices/dev_pic.c
- Timestamp:
- Mar 28, 2018, 2:40:29 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/devices/dev_pic.c
r422 r437 2 2 * dev_pic.c - PIC (External Interrupt Controler) generic device API implementation. 3 3 * 4 * Authors Alain Greiner (2016 )4 * Authors Alain Greiner (2016,2017,2018) 5 5 * 6 6 * Copyright (c) UPMC Sorbonne Universites … … 86 86 { 87 87 88 irq_dmsg("\n[DBG] %s : core = [%x,%d] / src_chdev_cxy = %x / src_chdev_ptr = %x\n", 89 __FUNCTION__ , local_cxy , lid , GET_CXY(src_chdev_xp) , GET_PTR(src_chdev_xp) ); 88 #if CONFIG_DEBUG_DEV_PIC 89 uint32_t cycle = (uint32_t)hal_get_cycles(); 90 if( CONFIG_DEBUG_DEV_PIC < cycle ) 91 printk("\n[DBG] %s : core[%x,%d] / src_chdev_cxy %x / src_chdev_ptr %x / cycle %d\n", 92 __FUNCTION__, local_cxy, lid, GET_CXY(src_chdev_xp), GET_PTR(src_chdev_xp), cycle ); 93 #endif 90 94 91 95 // get pointer on PIC chdev … … 105 109 { 106 110 107 irq_dmsg("\n[DBG] %s : core = [%x,%d] / src_chdev_cxy = %x / src_chdev_ptr = %x\n", 108 __FUNCTION__ , local_cxy , lid , GET_CXY(src_chdev_xp) , GET_PTR(src_chdev_xp) ); 111 #if CONFIG_DEBUG_DEV_PIC 112 uint32_t cycle = (uint32_t)hal_get_cycles(); 113 if( CONFIG_DEBUG_DEV_PIC < cycle ) 114 printk("\n[DBG] %s : core[%x,%d] / src_chdev_cxy %x / src_chdev_ptr %x / cycle %d\n", 115 __FUNCTION__, local_cxy, lid, GET_CXY(src_chdev_xp), GET_PTR(src_chdev_xp), cycle ); 116 #endif 109 117 110 118 // get pointer on PIC chdev … … 123 131 { 124 132 125 irq_dmsg("\n[DBG] %s : core = [%x,%d] / period = %d\n", 126 __FUNCTION__ , local_cxy , CURRENT_THREAD->core->lid , period ); 133 #if CONFIG_DEBUG_DEV_PIC 134 uint32_t cycle = (uint32_t)hal_get_cycles(); 135 if( CONFIG_DEBUG_DEV_PIC < cycle ) 136 printk("\n[DBG] %s : core[%x,%d] / period %d / cycle %d\n", 137 __FUNCTION__ , local_cxy , CURRENT_THREAD->core->lid , period, cycle ); 138 #endif 127 139 128 140 // get pointer on PIC chdev … … 141 153 { 142 154 143 irq_dmsg("\n[DBG] %s : core = [%x,%d] / cycle %d\n", 144 __FUNCTION__ , local_cxy , CURRENT_THREAD->core->lid , hal_time_stamp() ); 155 #if CONFIG_DEBUG_DEV_PIC 156 uint32_t cycle = (uint32_t)hal_get_cycles(); 157 if( CONFIG_DEBUG_DEV_PIC < cycle ) 158 printk("\n[DBG] %s : core[%x,%d] / cycle %d\n", 159 __FUNCTION__ , local_cxy , CURRENT_THREAD->core->lid , cycle ); 160 #endif 145 161 146 162 // get pointer on PIC chdev … … 160 176 { 161 177 162 irq_dmsg("\n[DBG] %s : src_core = [%x,%d] / dst_core = [%x,%d] / cycle %d\n", 163 __FUNCTION__, local_cxy, CURRENT_THREAD->core->lid, cxy, lid, hal_time_stamp() ); 178 #if CONFIG_DEBUG_DEV_PIC 179 uint32_t cycle = (uint32_t)hal_get_cycles(); 180 if( CONFIG_DEBUG_DEV_PIC < cycle ) 181 printk("\n[DBG] %s : src_core[%x,%d] / dst_core[%x,%d] / cycle %d\n", 182 __FUNCTION__, local_cxy, CURRENT_THREAD->core->lid, cxy, lid, cycle ); 183 #endif 164 184 165 185 // get pointer on PIC chdev … … 178 198 { 179 199 180 irq_dmsg("\n[DBG] %s : core = [%x,%d] / cycle %d\n", 181 __FUNCTION__, local_cxy, CURRENT_THREAD->core->lid, hal_time_stamp() ); 200 #if CONFIG_DEBUG_DEV_PIC 201 uint32_t cycle = (uint32_t)hal_get_cycles(); 202 if( CONFIG_DEBUG_DEV_PIC < cycle ) 203 printk("\n[DBG] %s : core[%x,%d] / cycle %d\n", 204 __FUNCTION__, local_cxy, CURRENT_THREAD->core->lid, cycle ); 205 #endif 182 206 183 207 // get pointer on PIC chdev
Note: See TracChangeset
for help on using the changeset viewer.