Changeset 438 for trunk/kernel/kern/kernel_init.c
- Timestamp:
- Apr 4, 2018, 2:49:02 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/kernel_init.c
r437 r438 125 125 // these debug variables are used to analyse the sys_read() syscall timing 126 126 127 #if CONFIG_DEBUG_SYS_READ127 #if DEBUG_SYS_READ 128 128 uint32_t enter_sys_read; 129 129 uint32_t exit_sys_read; … … 150 150 // these debug variables are used to analyse the sys_write() syscall timing 151 151 152 #if CONFIG_DEBUG_SYS_WRITE152 #if DEBUG_SYS_WRITE 153 153 uint32_t enter_sys_write; 154 154 uint32_t exit_sys_write; … … 324 324 } 325 325 326 #if( CONFIG_DEBUG_KERNEL_INIT & 0x1 )327 if( hal_time_stamp() > CONFIG_DEBUG_KERNEL_INIT )326 #if( DEBUG_KERNEL_INIT & 0x1 ) 327 if( hal_time_stamp() > DEBUG_KERNEL_INIT ) 328 328 printk("\n[DBG] %s : created MMC in cluster %x / chdev = %x\n", 329 329 __FUNCTION__ , local_cxy , chdev_ptr ); … … 353 353 chdev_dir.dma[channel] = XPTR( local_cxy , chdev_ptr ); 354 354 355 #if( CONFIG_DEBUG_KERNEL_INIT & 0x1 )356 if( hal_time_stamp() > CONFIG_DEBUG_KERNEL_INIT )355 #if( DEBUG_KERNEL_INIT & 0x1 ) 356 if( hal_time_stamp() > DEBUG_KERNEL_INIT ) 357 357 printk("\n[DBG] %s : created DMA[%d] in cluster %x / chdev = %x\n", 358 358 __FUNCTION__ , channel , local_cxy , chdev_ptr ); … … 488 488 } 489 489 490 #if( CONFIG_DEBUG_KERNEL_INIT & 0x1 )491 if( hal_time_stamp() > CONFIG_DEBUG_KERNEL_INIT )490 #if( DEBUG_KERNEL_INIT & 0x1 ) 491 if( hal_time_stamp() > DEBUG_KERNEL_INIT ) 492 492 printk("\n[DBG] %s : create chdev %s / channel = %d / rx = %d / cluster %x / chdev = %x\n", 493 493 __FUNCTION__ , chdev_func_str( func ), channel , rx , local_cxy , chdev ); … … 623 623 } 624 624 625 #if( CONFIG_DEBUG_KERNEL_INIT & 0x1 )626 if( hal_time_stamp() > CONFIG_DEBUG_KERNEL_INIT )625 #if( DEBUG_KERNEL_INIT & 0x1 ) 626 if( hal_time_stamp() > DEBUG_KERNEL_INIT ) 627 627 { 628 628 printk("\n[DBG] %s created PIC chdev in cluster %x at cycle %d\n", … … 807 807 ///////////////////////////////////////////////////////////////////////////////// 808 808 809 #if CONFIG_DEBUG_KERNEL_INIT810 if( (core_lid == 0) & &(local_cxy == 0) )809 #if DEBUG_KERNEL_INIT 810 if( (core_lid == 0) & (local_cxy == 0) ) 811 811 printk("\n[DBG] %s : exit barrier 0 : TXT0 initialized / cycle %d\n", 812 812 __FUNCTION__, (uint32_t)hal_get_cycles() ); … … 845 845 ///////////////////////////////////////////////////////////////////////////////// 846 846 847 #if CONFIG_DEBUG_KERNEL_INIT848 if( (core_lid == 0) & &(local_cxy == 0) )847 #if DEBUG_KERNEL_INIT 848 if( (core_lid == 0) & (local_cxy == 0) ) 849 849 printk("\n[DBG] %s : exit barrier 1 : clusters initialised / cycle %d\n", 850 850 __FUNCTION__, (uint32_t)hal_get_cycles() ); … … 872 872 //////////////////////////////////////////////////////////////////////////////// 873 873 874 #if CONFIG_DEBUG_KERNEL_INIT875 if( (core_lid == 0) & &(local_cxy == 0) )874 #if DEBUG_KERNEL_INIT 875 if( (core_lid == 0) & (local_cxy == 0) ) 876 876 printk("\n[DBG] %s : exit barrier 2 : PIC initialised / cycle %d\n", 877 877 __FUNCTION__, (uint32_t)hal_get_cycles() ); … … 905 905 ///////////////////////////////////////////////////////////////////////////////// 906 906 907 #if CONFIG_DEBUG_KERNEL_INIT908 if( (core_lid == 0) & &(local_cxy == 0) )907 #if DEBUG_KERNEL_INIT 908 if( (core_lid == 0) & (local_cxy == 0) ) 909 909 printk("\n[DBG] %s : exit barrier 3 : all chdev initialised / cycle %d\n", 910 910 __FUNCTION__, (uint32_t)hal_get_cycles() ); 911 911 #endif 912 912 913 #if( CONFIG_DEBUG_KERNEL_INIT & 1 )913 #if( DEBUG_KERNEL_INIT & 1 ) 914 914 chdev_dir_display(); 915 915 #endif … … 927 927 928 928 // all cores initialize the idle thread descriptor 929 error = thread_ kernel_init( thread,930 931 932 933 929 error = thread_idle_init( thread, 930 THREAD_IDLE, 931 &thread_idle_func, 932 NULL, 933 core_lid ); 934 934 if( error ) 935 935 { … … 942 942 core->scheduler.idle = thread; 943 943 944 #if( CONFIG_DEBUG_KERNEL_INIT & 1 )944 #if( DEBUG_KERNEL_INIT & 1 ) 945 945 sched_display( core_lid ); 946 946 #endif … … 1014 1014 ///////////////////////////////////////////////////////////////////////////////// 1015 1015 1016 #if CONFIG_DEBUG_KERNEL_INIT1017 if( (core_lid == 0) & &(local_cxy == 0) )1016 #if DEBUG_KERNEL_INIT 1017 if( (core_lid == 0) & (local_cxy == 0) ) 1018 1018 printk("\n[DBG] %s : exit barrier 4 : VFS_root = %l in cluster 0 / cycle %d\n", 1019 1019 __FUNCTION__, vfs_root_inode_xp , (uint32_t)hal_get_cycles()); … … 1075 1075 ///////////////////////////////////////////////////////////////////////////////// 1076 1076 1077 #if CONFIG_DEBUG_KERNEL_INIT1078 if( (core_lid == 0) & & (local_cxy == io_cxy) )1077 #if DEBUG_KERNEL_INIT 1078 if( (core_lid == 0) & (local_cxy == 0) ) 1079 1079 printk("\n[DBG] %s : exit barrier 5 : VFS_root = %l in cluster %x / cycle %d\n", 1080 1080 __FUNCTION__, vfs_root_inode_xp , io_cxy , (uint32_t)hal_get_cycles()); … … 1110 1110 ///////////////////////////////////////////////////////////////////////////////// 1111 1111 1112 #if CONFIG_DEBUG_KERNEL_INIT1113 if( (core_lid == 0) & & (local_cxy == io_cxy) )1112 #if DEBUG_KERNEL_INIT 1113 if( (core_lid == 0) & (local_cxy == 0) ) 1114 1114 printk("\n[DBG] %s : exit barrier 6 : dev_root = %l in cluster %x / cycle %d\n", 1115 1115 __FUNCTION__, devfs_dev_inode_xp , io_cxy , (uint32_t)hal_get_cycles() ); … … 1149 1149 ///////////////////////////////////////////////////////////////////////////////// 1150 1150 1151 #if CONFIG_DEBUG_KERNEL_INIT1152 if( (core_lid == 0) & &(local_cxy == 0) )1151 #if DEBUG_KERNEL_INIT 1152 if( (core_lid == 0) & (local_cxy == 0) ) 1153 1153 printk("\n[DBG] %s : exit barrier 7 : dev_root = %l in cluster 0 / cycle %d\n", 1154 1154 __FUNCTION__, devfs_dev_inode_xp , (uint32_t)hal_get_cycles() ); … … 1162 1162 { 1163 1163 1164 #if( CONFIG_DEBUG_KERNEL_INIT & 1 )1164 #if( DEBUG_KERNEL_INIT & 1 ) 1165 1165 vfs_display( vfs_root_inode_xp ); 1166 1166 #endif … … 1175 1175 ///////////////////////////////////////////////////////////////////////////////// 1176 1176 1177 #if CONFIG_DEBUG_KERNEL_INIT1178 if( (core_lid == 0) & &(local_cxy == 0) )1177 #if DEBUG_KERNEL_INIT 1178 if( (core_lid == 0) & (local_cxy == 0) ) 1179 1179 printk("\n[DBG] %s : exit barrier 8 : process init created / cycle %d\n", 1180 1180 __FUNCTION__ , (uint32_t)hal_get_cycles() ); … … 1189 1189 print_banner( (info->x_size * info->y_size) , info->cores_nr ); 1190 1190 1191 #if( CONFIG_DEBUG_KERNEL_INIT & 1 )1191 #if( DEBUG_KERNEL_INIT & 1 ) 1192 1192 printk("\n\n***** memory fooprint for main kernel objects\n\n" 1193 1193 " - thread descriptor : %d bytes\n"
Note: See TracChangeset
for help on using the changeset viewer.