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.
Hello, I've (at last) successfully created basic of os - software interrupts in ring 3. Now I am aiming to crate hardware handling for for ex. PIT interrupt. I get back to user mode switch code and pushed corrected eflags on to stack, so the iret will pop ant set the register. After doing this my code fails.
I dont think 13 (or even 0x13, for that matter) are valid segment numbers. They start at 0x08, and go up by 0x08, and you need at least two entries in the GDT.
So, you should probably be using segments 0x08 and 0x10.
Project: OZone
Source: GitHub
Current Task: LIB/OBJ file support
"The more they overthink the plumbing, the easier it is to stop up the drain." - Montgomery Scott
SpyderTL wrote:I dont think 13 (or even 0x13, for that matter) are valid segment numbers. They start at 0x08, and go up by 0x08, and you need at least two entries in the GDT.
So, you should probably be using segments 0x08 and 0x10.
The lowest 2 bits are the RPL so 0x13 could be a valid selector.
If a trainstation is where trains stop, what is a workstation ?