Hung up on TTS flush

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
User avatar
deleted
Member
Member
Posts: 82
Joined: Mon Jul 21, 2014 7:23 pm

Hung up on TTS flush

Post by deleted »

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:

Code: Select all

tss_flush:
    mov ax, 0x2B
    ltr ax
    ret
 
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!
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Hung up on TTS flush

Post by Combuster »

it won't flush the tss.
Bad bug report. What exactly were you expecting it to do and what actually did happen?
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Post Reply