Changeset 50 for trunk/kernel/kern/kernel_init.c
- Timestamp:
- Jun 26, 2017, 3:15:11 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/kernel_init.c
r25 r50 55 55 #include <devfs.h> 56 56 57 // TODO #include <sysfs.h>58 57 59 58 #define KERNEL_INIT_SYNCHRO 0xA5A5B5B5 … … 115 114 __attribute__((section(".kdata"))) 116 115 barrier_t local_barrier CONFIG_CACHE_LINE_ALIGNED; 116 117 // This variable defines the array of supported File System contexts 118 __attribute__((section(".kdata"))) 119 vfs_ctx_t fs_context[FS_TYPES_NR] CONFIG_CACHE_LINE_ALIGNED; 120 117 121 118 122 /////////////////////////////////////////////////////////////////////////////////////////// … … 293 297 } 294 298 295 kinit_dmsg("\n[INFO] %s : core[%x][0] create sICU chdev at cycle %d\n",299 kinit_dmsg("\n[INFO] %s : core[%x][0] created ICU chdev at cycle %d\n", 296 300 __FUNCTION__ , local_cxy , hal_time_stamp() ); 297 301 … … 335 339 } 336 340 337 kinit_dmsg("\n[INFO] %s : core[%x][0] create sMMC chdev at cycle %d\n",341 kinit_dmsg("\n[INFO] %s : core[%x][0] created MMC chdev at cycle %d\n", 338 342 __FUNCTION__ , local_cxy , hal_time_stamp() ); 339 343 } … … 370 374 chdev_dir.dma[channel] = chdev_xp; 371 375 372 kinit_dmsg("\n[INFO] %s : core[%x][0] create sDMA[%d] chdev at cycle %d\n",376 kinit_dmsg("\n[INFO] %s : core[%x][0] created DMA[%d] chdev at cycle %d\n", 373 377 __FUNCTION__ , local_cxy , channel , hal_time_stamp() ); 374 378 } … … 395 399 // 396 400 // TODO check that cluster IO contains a PIC [AG] 401 // TODO make a default initialisation for the chdev_dir structure (XPTR_NULL ) [AG] 397 402 /////////////////////////////////////////////////////////////////////////////////////////// 398 403 // @ info : pointer on the local boot-info structure. … … 713 718 // CP0 allocates one WTI mailbbox per core for Inter Processor Interrupt 714 719 // this must be done after ICU chdev initialisation, by CP0 only, and before 715 // external devices initialisation to enforce the rule (wti_id == lid) 720 // external devices initialisation to enforce the rule : 721 // "The WTI index for the IPI routed to core[lid] is lid" 716 722 if( core_lid == 0 ) 717 723 { … … 733 739 } 734 740 735 // CP0contribute to initialise external peripheral chdev descriptors.741 // All CP0s contribute to initialise external peripheral chdev descriptors. 736 742 // Each CP0[cxy] scan the set of external (shared) peripherals (but the TXT0), 737 743 // and allocates memory for the chdev descriptors that must be placed … … 779 785 } 780 786 781 printk("\n bloup 0\n");782 783 787 // CP0 in all clusters initializes cooperatively VFS and DEVFS 784 788 if( (core_lid == 0) ) … … 786 790 xptr_t root_inode_xp; 787 791 788 // initialize root File System 792 // initialize root File System (must be FATFS in this implementation) 789 793 if( CONFIG_VFS_ROOT_IS_FATFS ) 790 794 { … … 804 808 } 805 809 806 printk("\n bloup 1\n");807 808 810 // mount the DEVFS File system 809 811 devfs_mount( root_inode_xp , "dev" ); 810 812 } 811 812 printk("\n bloup 2\n");813 813 814 814 // CP0 in I/O cluster print banner … … 844 844 845 845 // each core jump to idle thread 846 // asm volatile( "j thread_idle_func\n");846 thread_idle_func(); 847 847 848 848 } // end kernel_init()
Note: See TracChangeset
for help on using the changeset viewer.