Page 1 of 1

help with hardware multitasking

Posted: Sun Mar 28, 2004 12:00 am
by aks
i am testing the working of hardware multitasking for my os.i have made the gdt entries and reserved the space for the tss's.so currently i have 2 tss's.the first tss's gdt selector is used by the ltr statement. now when i try to switch the task to the other tss selector the system restarts.(no interrupt is generated.also i am using vmware.the virtual machine says that there is a problem with the stack).plz help.also could anyone plz giveme some example to demonstrate the h/w multitasking.

RE:help with hardware multitasking

Posted: Sun Mar 28, 2004 12:00 am
by TheUbu
aks,

Are you sure the TSS are initialized properly? Correct SS,CS,ES,EBP,ESP and so on? Also you do not need multiple TSS segments you can unset the busy bit and re-initialize the TSS and jump back to it. If you could paste your code that initializes the TSS I can better help you or if you are totally confused I have some documents and sample code I can send your way.



-Christopher