LemonOS icon indicating copy to clipboard operation
LemonOS copied to clipboard

Kernel Syscall Rework

Open fido2020 opened this issue 2 years ago • 0 comments

Pretty much every syscall needs to be rewritten to some extent.

  1. Use syscall instruction instead of int
  2. Ensure userspace addresses are safely accessed
  3. Separate out architecture specific code for future support for other architectures such as arm64 or riscv
  4. Separate the syscalls into separate files not just for readability but so the compiler does not need to recompile thousands of lines of code every time a syscall or one of the many headers is touched
  5. Consider distinguishing between posix/linux-like syscalls and lemon-specific syscalls
  6. Consider allowing userspace to read various parts of kernel memory to avoid entering the kernel for example system uptime, process ID, thread ID

fido2020 avatar Aug 06 '22 03:08 fido2020