very strange bug (please help)

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
Andrejus

very strange bug (please help)

Post by Andrejus »

Hi,

we have problem :(

Sometimes (it depends on kernel code), our OS don't boot.
Or if it boot, after few instructions we have Page Fault.

May be our bootloader is wrong ?

[attachment deleted by admin]
dark angel

Re:very strange bug (please help)

Post by dark angel »

This is not a very strange bug, like every bug, it causes your code stop working properly. A strange bug would be creating you a multitasking environment while you are trying to write a boot loader, this is ABSOLUTELY NOT a very strange bug. Thats all I can say...
Andrejus

Re:very strange bug (please help)

Post by Andrejus »

I agree with you :)

But, your answer is 'very strange' :)
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:very strange bug (please help)

Post by Pype.Clicker »

since you do not check sectors were loaded correctly (CF flag) after you called INT 13, i'm not surprised you get Very Strange Things (tm) occuring ... You should know that the Floppy Controller may fail one or two time reading a sector before it succeeds ... It may not be calibrated very well, etc. So you have to try up to three times before you actually can tell it's not working (yeah, i know: it suxx, but that's the way it is), and you should certainly not assume it will succeed without checking the error code.
Post Reply