-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
How to communicate between rings? #1390
Comments
The kernel can go to userspace using iret/sysret and userspace can call into the kernel using the syscall instruction or by causing an exception. |
What is needed to do before userspace and what are the best resources @bjorn3 ? |
Maybe https://wiki.osdev.org/Getting_to_Ring_3 would help you? |
My OS: https://github.com/ChocolateLoverRaj/code-runner/tree/edition-3. Note that I am still working on the ELF stuff. |
User-space programs should run in CPU ring3, but kernel runs in ring0, how to communicate between rings?
The text was updated successfully, but these errors were encountered: