Changeset 583 for trunk/kernel/kern/do_syscall.c
- Timestamp:
- Nov 1, 2018, 12:10:42 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/do_syscall.c
r527 r583 35 35 // This ƒonction should never be called... 36 36 /////////////////////////////////////////////////////////////////////////////////////// 37 staticint sys_undefined( void )37 int sys_undefined( void ) 38 38 { 39 39 assert( false , "undefined system call" ); … … 43 43 /////////////////////////////////////////////////////////////////////////////////////// 44 44 // This array of pointers define the kernel functions implementing the syscalls. 45 // It must be kept consistent with the enum in "s hared_syscalls.h" file.45 // It must be kept consistent with the enum in "syscalls_numbers.h" file. 46 46 /////////////////////////////////////////////////////////////////////////////////////// 47 47 … … 98 98 sys_get_cycle, // 42 99 99 sys_display, // 43 100 sys_ undefined,// 44100 sys_place_fork, // 44 101 101 sys_thread_sleep, // 45 102 102 sys_thread_wakeup, // 46 … … 106 106 }; 107 107 108 //////////////////////////////////// 108 //////////////////////////////////////////// 109 109 const char * syscall_str( syscalls_t index ) 110 110 { 111 switch (index) { 111 switch (index) 112 { 112 113 case SYS_THREAD_EXIT: return "THREAD_EXIT"; // 0 113 114 case SYS_THREAD_YIELD: return "THREAD_YIELD"; // 1 … … 158 159 case SYS_GET_CYCLE: return "GET_CYCLE"; // 42 159 160 case SYS_DISPLAY: return "DISPLAY"; // 43 161 case SYS_PLACE_FORK: return "PLACE_FORK"; // 44 160 162 case SYS_THREAD_SLEEP: return "THREAD_SLEEP"; // 45 161 163 case SYS_THREAD_WAKEUP: return "THREAD_WAKEUP"; // 46 … … 163 165 case SYS_FG: return "FG"; // 48 164 166 case SYS_IS_FG: return "IS_FG"; // 49 165 166 case SYS_UNDEFINED:167 167 default: return "undefined"; 168 }168 } 169 169 } 170 170
Note: See TracChangeset
for help on using the changeset viewer.