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.
Hi everyone ,
I am developing and operating system but now i want to make a Floppy Disk Controller i have made up to 10 FDCs but no one running successfully .
and i want to read a sector from a floppy.
---------------------------
Thank you in advance.
What is it currently doing now? How does it "not work"? What debugging have you already performed?
Please note the demo provided for that chapter uses the DMAC for data transfer so debugging steps should be performed on the DMAC interface and floppy driver software.
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
Hi,
The error is :
When i start it in a real computer the error handler starts and tells me "General Protection Fault"
and when i change the DMA buffer to any hex except "0x8000" it runs but when i want to read file it stops without any reason or error.
after that i returned to the FDC chapter and run it in a real computer , it runs successfully until i attempt to read sector 10 or higher it again stops without any reason or error.
after that i changed the DMA buffer from 0x8000 to 0x6000 or anything else it runs successfully until i attempt to read sector 2 or higher it again stops without any reason or error.
When i start it in a real computer the error handler starts and tells me "General Protection Fault"
Continue?
That's only step 1 in debugging: finding a symptom. So what is directly causing that exception? Can you trace that error further down to its origin? You should try and see how well that works
"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 ]