Changeset 683 for trunk/kernel/kern/do_syscall.c
- Timestamp:
- Jan 13, 2021, 12:36:17 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/do_syscall.c
r669 r683 2 2 * do_syscall.c - architecture independant entry-point for system calls. 3 3 * 4 * Author Alain Greiner (2016,2017,2018, 2019)4 * Author Alain Greiner (2016,2017,2018,2019,2020) 5 5 * 6 6 * Copyright (c) UPMC Sorbonne Universites … … 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 "syscalls_numbers.h" file. 45 // It must be kept consistent with the enum in <syscalls_numbers.h> file, 46 // and with the SYS_OBJs defined in the kernel <Makefile>. 46 47 /////////////////////////////////////////////////////////////////////////////////////// 47 48 … … 94 95 sys_wait, // 39 95 96 96 sys_get _config,// 4097 sys_ get_core_id,// 4198 sys_ get_cycle,// 4299 sys_ display,// 43100 sys_ place_fork,// 44101 sys_t hread_sleep,// 45102 sys_ thread_wakeup,// 46103 sys_ trace, // 47104 sys_f g,// 48105 sys_ is_fg, // 4997 sys_get, // 40 98 sys_display, // 41 99 sys_place_fork, // 42 100 sys_thread_sleep, // 43 101 sys_thread_wakeup, // 44 102 sys_trace, // 45 103 sys_fg, // 46 104 sys_is_fg, // 47 105 sys_fbf, // 48 106 sys_undefined, // 49 // 106 107 107 108 sys_exit, // 50 108 109 sys_sync, // 51 109 110 sys_fsync, // 52 110 sys_get_best_core, // 53 111 sys_get_nb_cores, // 54 112 sys_get_thread_info, // 55 113 sys_fbf, // 56 114 sys_socket, // 57 111 sys_socket, // 53 115 112 }; 116 113 … … 164 161 case SYS_WAIT: return "WAIT"; // 39 165 162 166 case SYS_GET_CONFIG: return "GET_CONFIG"; // 40 167 case SYS_GET_CORE_ID: return "GET_CORE_ID"; // 41 168 case SYS_GET_CYCLE: return "GET_CYCLE"; // 42 169 case SYS_DISPLAY: return "DISPLAY"; // 43 170 case SYS_PLACE_FORK: return "PLACE_FORK"; // 44 171 case SYS_THREAD_SLEEP: return "THREAD_SLEEP"; // 45 172 case SYS_THREAD_WAKEUP: return "THREAD_WAKEUP"; // 46 173 case SYS_TRACE: return "TRACE"; // 47 174 case SYS_FG: return "FG"; // 48 175 case SYS_IS_FG: return "IS_FG"; // 49 163 case SYS_GET: return "GET"; // 40 164 case SYS_DISPLAY: return "DISPLAY"; // 41 165 case SYS_PLACE_FORK: return "PLACE_FORK"; // 42 166 case SYS_THREAD_SLEEP: return "THREAD_SLEEP"; // 43 167 case SYS_THREAD_WAKEUP: return "THREAD_WAKEUP"; // 44 168 case SYS_TRACE: return "TRACE"; // 45 169 case SYS_FG: return "FG"; // 46 170 case SYS_IS_FG: return "IS_FG"; // 47 171 case SYS_FBF: return "FBF"; // 48 176 172 177 173 case SYS_EXIT: return "EXIT"; // 50 178 174 case SYS_SYNC: return "SYNC"; // 51 179 175 case SYS_FSYNC: return "FSYNC"; // 52 180 case SYS_GET_BEST_CORE: return "GET_BEST_CORE"; // 53 181 case SYS_GET_NB_CORES: return "GET_NB_CORES"; // 54 182 case SYS_GET_THREAD_INFO: return "GET_THREAD_INFO"; // 55 183 case SYS_FBF: return "FBF"; // 56 184 case SYS_SOCKET: return "SOCKET"; // 57 176 case SYS_SOCKET: return "SOCKET"; // 53 185 177 186 178 default: return "undefined";
Note: See TracChangeset
for help on using the changeset viewer.