You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to enable the syscall/sysret instructions in my kernel, however when I try to use the segments I registered in my GDT, I get this error: Error setting STAR: Sysret CS and SS are not offset by 8. I find it confusing because I generated these segments like this:
What is even more confusing is that cs_sysret and ss_sysret are in fact offset by 8. If anyone could point me in the right direction I would be thanked. Here is the code where I try to write to Star and its output:
DEBUG [jon::syscall:28]: User CS: 0x1b
DEBUG [jon::syscall:29]: User SS: 0x23
DEBUG [jon::syscall:30]: Kernel CS: 0x8
DEBUG [jon::syscall:31]: Kernel SS: 0x10
ERROR [jon:61]: panicked at src/syscall/mod.rs:38:13:
Error setting STAR: Sysret CS and SS are not offset by 8.
The text was updated successfully, but these errors were encountered:
Hello, I hope everyone is doing well!
I've been trying to enable the
syscall/sysret
instructions in my kernel, however when I try to use the segments I registered in my GDT, I get this error:Error setting STAR: Sysret CS and SS are not offset by 8
. I find it confusing because I generated these segments like this:What is even more confusing is that
cs_sysret
andss_sysret
are in fact offset by 8. If anyone could point me in the right direction I would be thanked. Here is the code where I try to write toStar
and its output:The text was updated successfully, but these errors were encountered: