Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kernel Syscall Rework #42

Open
fido2020 opened this issue Aug 6, 2022 · 0 comments
Open

Kernel Syscall Rework #42

fido2020 opened this issue Aug 6, 2022 · 0 comments

Comments

@fido2020
Copy link
Member

fido2020 commented Aug 6, 2022

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant