Changeset 438 for trunk/kernel/syscalls/sys_get_config.c
- Timestamp:
- Apr 4, 2018, 2:49:02 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_get_config.c
r436 r438 47 47 process_t * process = this->process; 48 48 49 #if CONFIG_DEBUG_SYS_GET_CONFIG49 #if DEBUG_SYS_GET_CONFIG 50 50 uint64_t tm_start; 51 51 uint64_t tm_end; 52 52 tm_start = hal_get_cycles(); 53 if( CONFIG_DEBUG_SYS_GET_CONFIG < tm_start )53 if( DEBUG_SYS_GET_CONFIG < tm_start ) 54 54 printk("\n[DBG] %s : thread %x enter / process %x / cycle %d\n", 55 55 __FUNCTION__, this, process->pid, (uint32_t)tm_start ); … … 64 64 { 65 65 66 #if CONFIG_DEBUG_SYSCALLS_ERROR66 #if DEBUG_SYSCALLS_ERROR 67 67 printk("\n[ERROR] in %s : user buffer unmapped for thread %x in process %x\n", 68 68 __FUNCTION__ , this->trdid , process->pid ); … … 84 84 hal_fence(); 85 85 86 #if CONFIG_DEBUG_SYS_GET_CONFIG86 #if DEBUG_SYS_GET_CONFIG 87 87 tm_end = hal_get_cycles(); 88 if( CONFIG_DEBUG_SYS_GET_CONFIG < tm_end )88 if( DEBUG_SYS_GET_CONFIG < tm_end ) 89 89 printk("\n[DBG] %s : thread %x exit / process %x / cost %d / cycle %d\n", 90 90 __FUNCTION__, this, process->pid, (uint32_t)(tm_end-tm_start), (uint32_t)tm_end );
Note: See TracChangeset
for help on using the changeset viewer.