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
What is a good template flag register for ring3 tasks
Re:What is a good template flag register for ring3 tasks
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
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