syscall: fix page fault on non-existent syscall

Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
This commit is contained in:
Michael Shaw 2024-06-13 22:59:38 -04:00
commit cb288f547e
3 changed files with 8 additions and 3 deletions

View file

@ -16,6 +16,7 @@ static const char *errno_str[] = {
[EFAULT] = "Bad address",
[EAGAIN] = "Try again",
[EBUSY] = "Device or resource busy",
[ENOSYS] = "Function not implemented",
};
inline const char *strerror(int errnum)