Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
I have successfully implemented scheduler in my OS. Now I'm able to run programs in ring 3. However, executing any privileged instruction in user mode leads to triple fault.
I don't know why. I have handlers for all exceptions and they work in kernel mode.
I thought that maybe it's the problem with my TSS. I set it as follows:
Thank you. I did not know about this flag. i tried multiply debugging opitons but haven't been able to check this. Now, with this information, it'll be much easier for me to track down this bug.