i am gettin triple fault when ever i use float values..
how to remove it.
FPU exception
- Combuster
- 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: FPU exception
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.
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
no idt is set up correct..
i get a eror when i do any operation of float..
not when i assign
i get a eror when i do any operation of float..
not when i assign
- Combuster
- 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: FPU exception
Then prove that it is, as the triple fault obviously suggests otherwise.no idt is set up correct..
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
ok..correctd but now every time i use a float i get a floating point exception.
- Combuster
- 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: FPU exception
Then you also know that you should check all possible causes of that exception. It's not that difficult.i get a floating point exception.
-
- Member
- Posts: 2566
- Joined: Sun Jan 14, 2007 9:15 pm
- Libera.chat IRC: miselin
- Location: Sydney, Australia (I come from a land down under!)
- Contact:
Re: FPU exception
And you find all possible causes by, well, RTFM.