| 11242 | }; |
| 11243 | |
| 11244 | const void *lwp_get_sys_api(rt_uint32_t number) |
| 11245 | { |
| 11246 | const void *func = (const void *)sys_notimpl; |
| 11247 | |
| 11248 | if (number == 0xff) |
| 11249 | { |
| 11250 | func = (void *)sys_log; |
| 11251 | } |
| 11252 | else |
| 11253 | { |
| 11254 | number -= 1; |
| 11255 | if (number < sizeof(func_table) / sizeof(func_table[0])) |
| 11256 | { |
| 11257 | func = func_table[number].func; |
| 11258 | } |
| 11259 | else |
| 11260 | { |
| 11261 | if (__sys_log_enable) |
| 11262 | { |
| 11263 | LOG_I("Unimplement syscall %d", number); |
| 11264 | } |
| 11265 | } |
| 11266 | } |
| 11267 | |
| 11268 | return func; |
| 11269 | } |
| 11270 | |
| 11271 | const char *lwp_get_syscall_name(rt_uint32_t number) |
| 11272 | { |