What is a good template flag register for ring3 tasks

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.
Post Reply
earlz

What is a good template flag register for ring3 tasks

Post by earlz »

I have begun doing multitasking(software without tss) and well i am using a iret task switching mechanism. the problem i am having is i don't really know what a good begenning flag template would be
I'm pretty sure that 0 would not work very well
proxy

Re:What is a good template flag register for ring3 tasks

Post by proxy »

i usually use 0x202 for a specific reason:

bit 1 (zero indexed, counting from the right) must be set to 1 according to intel docs and bit 9 means interrupts on which is important if you want preemptive multitasking. for vm8086 tasks I use 0x20202 which is the same but with the vm8086 bit set too.

proxy
Post Reply