Hung up on TTS flush
Posted: Fri May 22, 2015 10:24 am
Hello,
I have been following Jame's Molloys tutorials and have got to the part with user mode. I have a few problems though. When I try to enable my GDT I can install it until it gets to the tts_flush() function. Here it is:
Simple right? Well for some reason it's not so simple. I have all the other parts done and can read from an initrd, but for some reason it won't flush the tss. The answer is probably super simple but any help is appreciated.
Please point me to any tutorials, papers, posts, etc. and I opoligize for re-posting if this has been posted to death, I did search.
Thanks!
I have been following Jame's Molloys tutorials and have got to the part with user mode. I have a few problems though. When I try to enable my GDT I can install it until it gets to the tts_flush() function. Here it is:
Code: Select all
tss_flush:
mov ax, 0x2B
ltr ax
ret
Please point me to any tutorials, papers, posts, etc. and I opoligize for re-posting if this has been posted to death, I did search.
Thanks!