Page 1 of 1
FPU exception
Posted: Sat Jun 21, 2008 12:55 am
by asdfgh
i am gettin triple fault when ever i use float values..
how to remove it.
Re: FPU exception
Posted: Sat Jun 21, 2008 1:35 am
by Combuster
Solution: Don't use floats.
Seriously, you sound like your kernel is messed up such that you can't even handle an exception properly. Make sure your IDT and exception handlers work first before even trying these things.
Also, many consider the use of floats in the kernel bad practice.
Re: FPU exception
Posted: Sat Jun 21, 2008 1:49 am
by asdfgh
no idt is set up correct..
i get a eror when i do any operation of float..
not when i assign
Re: FPU exception
Posted: Sat Jun 21, 2008 2:02 am
by Combuster
no idt is set up correct..
Then prove that it is, as the triple fault obviously suggests otherwise.
The reason why I ask, is because the place where you fail to complete this proof is most likely the place where your real problem is.
Re: FPU exception
Posted: Sat Jun 21, 2008 3:55 am
by asdfgh
ok..correctd but now every time i use a float i get a floating point exception.
Re: FPU exception
Posted: Sat Jun 21, 2008 7:55 am
by Combuster
i get a floating point exception.
Then you also know that you should check all possible causes of that exception. It's not that difficult.
Re: FPU exception
Posted: Mon Jun 23, 2008 12:42 am
by pcmattman
And you find all possible causes by, well, RTFM.