Hey all!
I want to do task switching without TSS. Who can help me?
multitasking without TSS
Re: multitasking without TSS
hardware task switching require tss by definition.
in software do whatever you like, tss is mandatory only for increasing cpl.
in software do whatever you like, tss is mandatory only for increasing cpl.
Re: multitasking without TSS
I think that hardware taskswitching is incompatible with SMP (I could be wrong, but it is my impression), so I switched from hardware taskswitching to software taskswitching about a year ago. I still use the TSS though, and save/load registers to/from the TSS (with software), and use LTR to load the new TSS. I think it is a good idea to use the TSS even if hardware taskswitching is not used. The only problem I can see with leaving hardware taskswitching is that some faults that before generated invalid TSS and stack faults, now tend to generate complex faults in the scheduler that sometimes leads to panics, especially when the stack is involved.