>>PANIC<< LTR: selector.ti != 0????

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
earlz

>>PANIC<< LTR: selector.ti != 0????

Post by earlz »

bochs gives me this error in my TSS code, but if I just push continue then my kernel will boot fine, so what exactly does that mean?
Lord_Coder

Re:>>PANIC<< LTR: selector.ti != 0????

Post by Lord_Coder »

Could you type your kernel's source code ?
Probably you declared another function before _main .
earlz

Re:>>PANIC<< LTR: selector.ti != 0????

Post by earlz »

no thats not the problem, I'm sure my _main is first because my little mini console boots, I then type the test command which calls StartTSS(), so its not any problem like that
Ryu

Re:>>PANIC<< LTR: selector.ti != 0????

Post by Ryu »

TI = Table Indicator, which tells the processor the selector is in the GDT or LDT. If your using TSS descriptors, it must be in the GDT (TI=0) I believe.

edit: This panic may also come up if you don't set LDTR before setting TR, just a possiblity.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:>>PANIC<< LTR: selector.ti != 0????

Post by Pype.Clicker »

i guess things goes on fine when you pick "continue" because the virtual machine simply ignore the "TI" bit for TSS selectors... well, at least after having "panic'd" about it :P
Post Reply