Changeset 626 for trunk/kernel/kern
- Timestamp:
- Apr 29, 2019, 7:25:09 PM (6 years ago)
- Location:
- trunk/kernel/kern
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/do_syscall.c
r610 r626 2 2 * do_syscall.c - architecture independant entry-point for system calls. 3 3 * 4 * Author Alain Greiner (2016,2017,2018 )4 * Author Alain Greiner (2016,2017,2018, 2019) 5 5 * 6 6 * Copyright (c) UPMC Sorbonne Universites … … 106 106 107 107 sys_exit, // 50 108 sys_sync, // 51 109 sys_fsync, // 52 108 110 }; 109 111 … … 169 171 170 172 case SYS_EXIT: return "EXIT"; // 50 173 case SYS_SYNC: return "SYNC"; // 51 174 case SYS_FSYNC: return "FSYNc"; // 52 171 175 172 176 default: return "undefined"; -
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; -
trunk/kernel/kern/process.c
r625 r626 1447 1447 #if( DEBUG_PROCESS_MAKE_FORK & 1 ) 1448 1448 cycle = (uint32_t)hal_get_cycles(); 1449 if( DEBUG_PROCESS_MAKE_ EXEC< cycle )1449 if( DEBUG_PROCESS_MAKE_FORK < cycle ) 1450 1450 printk("\n[%s] thread[%x,%x] / child takes TXT ownership / cycle %d\n", 1451 1451 __FUNCTION__ , pid, trdid, cycle ); … … 1556 1556 #if DEBUG_PROCESS_MAKE_EXEC 1557 1557 uint32_t cycle = (uint32_t)hal_get_cycles(); 1558 if( DEBUG_PROCESS_MAKE_EXEC < cycle)1558 if( local_cxy == 0x11 ) 1559 1559 printk("\n[%s] thread[%x,%x] enters for %s / cycle %d\n", 1560 1560 __FUNCTION__, pid, thread->trdid, path, cycle ); … … 1579 1579 #if (DEBUG_PROCESS_MAKE_EXEC & 1) 1580 1580 cycle = (uint32_t)hal_get_cycles(); 1581 if( DEBUG_PROCESS_MAKE_EXEC < cycle)1581 if( local_cxy == 0x11 ) 1582 1582 printk("\n[%s] thread[%x,%x] opened file <%s> / cycle %d\n", 1583 1583 __FUNCTION__, pid, thread->trdid, path, cycle ); … … 1589 1589 #if (DEBUG_PROCESS_MAKE_EXEC & 1) 1590 1590 cycle = (uint32_t)hal_get_cycles(); 1591 if( DEBUG_PROCESS_MAKE_EXEC < cycle)1591 if( local_cxy == 0x11 ) 1592 1592 printk("\n[%s] thread[%x,%x] deleted existing threads / cycle %d\n", 1593 1593 __FUNCTION__, pid, thread->trdid, cycle ); … … 1599 1599 #if( DEBUG_PROCESS_MAKE_EXEC & 1 ) 1600 1600 cycle = (uint32_t)hal_get_cycles(); 1601 if( DEBUG_PROCESS_MAKE_EXEC < cycle)1601 if( local_cxy == 0x11 ) 1602 1602 printk("\n[%s] thread[%x,%x] completed VMM reset / cycle %d\n", 1603 1603 __FUNCTION__, pid, thread->trdid, cycle ); … … 1616 1616 #if( DEBUG_PROCESS_MAKE_EXEC & 1 ) 1617 1617 cycle = (uint32_t)hal_get_cycles(); 1618 if( DEBUG_PROCESS_MAKE_EXEC < cycle)1618 if( local_cxy == 0x11 ) 1619 1619 printk("\n[%s] thread[%x,%x] registered args/envs vsegs / cycle %d\n", 1620 1620 __FUNCTION__, pid, thread->trdid, cycle ); … … 1634 1634 #if( DEBUG_PROCESS_MAKE_EXEC & 1 ) 1635 1635 cycle = (uint32_t)hal_get_cycles(); 1636 if( DEBUG_PROCESS_MAKE_EXEC < cycle)1636 if( local_cxy == 0x11 ) 1637 1637 printk("\n[%s] thread[%x,%x] registered code/data vsegs / cycle %d\n", 1638 1638 __FUNCTION__, pid, thread->trdid, cycle );
Note: See TracChangeset
for help on using the changeset viewer.