Changeset 626 for trunk/kernel/kern/kernel_init.c
- Timestamp:
- Apr 29, 2019, 7:25:09 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/kernel_init.c
r624 r626 898 898 } 899 899 900 901 902 903 904 ///////////////////////////////// 905 // kleenex debug function 906 ///////////////////////////////// 907 void display_fat( uint32_t step ) 908 { 909 fatfs_ctx_t * fatfs_ctx = fs_context[FS_TYPE_FATFS].extend; 910 if( fatfs_ctx != NULL ) 911 { 912 printk("\n[%s] step %d at cycle %d\n", __FUNCTION__, step, (uint32_t)hal_get_cycles() ); 913 xptr_t mapper_xp = fatfs_ctx->fat_mapper_xp; 914 mapper_display_page( mapper_xp , 0 , 128 ); 915 } 916 else 917 { 918 printk("\n[%s] step %d : fatfs context not initialized\n", __FUNCTION__, step ); 919 } 920 } 921 922 923 924 925 900 926 /////////////////////////////////////////////////////////////////////////////////////////// 901 927 // This function is the entry point for the kernel initialisation. … … 1143 1169 if( CONFIG_VFS_ROOT_IS_FATFS ) 1144 1170 { 1145 // 1. allocate memory for FATFS context extensionin cluster 01171 // 1. allocate memory for FATFS context in cluster 0 1146 1172 fatfs_ctx_t * fatfs_ctx = fatfs_ctx_alloc(); 1147 1173 … … 1155 1181 // 2. access boot device to initialize FATFS context 1156 1182 fatfs_ctx_init( fatfs_ctx ); 1157 1183 1158 1184 // 3. get various informations from FATFS context 1159 1185 uint32_t root_dir_cluster = fatfs_ctx->root_dir_cluster;
Note: See TracChangeset
for help on using the changeset viewer.