Page 1 of 1

What is a good template flag register for ring3 tasks

Posted: Fri Mar 17, 2006 10:44 pm
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

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

Posted: Fri Mar 17, 2006 11:03 pm
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