help with hardware multitasking

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
aks

help with hardware multitasking

Post 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.
TheUbu

RE:help with hardware multitasking

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