OSDev.org

The Place to Start for Operating System Developers
It is currently Thu May 09, 2024 6:11 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: triple fault..
PostPosted: Wed May 28, 2008 12:16 am 
Offline
Member
Member
User avatar

Joined: Sun Mar 02, 2008 8:15 am
Posts: 30
when i do float operation the os triple faults


Code:
float f;
f*=5;


if i insert this it triple faults..


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 28, 2008 1:40 am 
Offline
Member
Member
User avatar

Joined: Tue Jul 10, 2007 5:27 am
Posts: 2935
Location: York, United Kingdom
Hi,

Firstly, what OS?.

Secondly, you're multiplying an undefined variable. That means you're performing floating point arithmetic on a number that may not actually be in IEEE754 format, so you're probably getting a floating point exception that you're not handling.

Cheers,

James

_________________
Horizon - a framework and language for SAS-OS development
Project 'Pedigree'
Practical x86 OSDev tutorials


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 28, 2008 4:33 am 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 3:45 am
Posts: 9301
Location: On the balcony, where I can actually keep 1½m distance
Quote:
so you're probably getting a floating point exception that you're not handling.

In other words: fix your IDT first.

_________________
"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 ]


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: 8infy, Google [Bot] and 42 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group