how to:hard disk I/O and file system

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.
User avatar
hegde1997
Member
Member
Posts: 40
Joined: Mon Jan 30, 2012 7:36 am
Location: Bangalore, India
Contact:

Re: how to:hard disk I/O and file system

Post by hegde1997 »

But actually that routine is never executed. I had written it but now its not used and never gets called any time then how can it make so many gpfs?
Walking my way in making my OS
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: how to:hard disk I/O and file system

Post by Solar »

hegde1997 wrote:But actually that routine is never executed...
Then why is it included in your post?

Try reducing scope. Do some debugging.
Every good solution is obvious once you've found it.
Nable
Member
Member
Posts: 453
Joined: Tue Nov 08, 2011 11:35 am

Re: how to:hard disk I/O and file system

Post by Nable »

to hegde1997
Combuster showed you one place where you have a great mistake, but you have this mistake in many other places too.
Just think about size of `word' and `eax'.

I'm feeling tired of this madness.. although i'm remembering that about 5 years ago i've done the same mistake.
User avatar
hegde1997
Member
Member
Posts: 40
Joined: Mon Jan 30, 2012 7:36 am
Location: Bangalore, India
Contact:

Re: how to:hard disk I/O and file system

Post by hegde1997 »

for the general protection fault i am getting error code 4452.
Walking my way in making my OS
User avatar
Combuster
Member
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: how to:hard disk I/O and file system

Post by Combuster »

Only 5 days to only find out what garbage value you attempt to put in a segment register?

Do some debugging. Get yourself the line of code.
"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 ]
User avatar
hegde1997
Member
Member
Posts: 40
Joined: Mon Jan 30, 2012 7:36 am
Location: Bangalore, India
Contact:

Re: how to:hard disk I/O and file system

Post by hegde1997 »

Combuster wrote:Only 5 days to only find out what garbage value you attempt to put in a segment register?

Do some debugging. Get yourself the line of code.
I am replying to this post almost after few months. i got it solved and it was too silly mistake. at a place before my kernel_main() i had done cli and so i got interrupts after i had done sti. and the gpf one is bcoz in my irq instead of jmp i had done call and so may be stack was getting messed up.
i had got solution to dis a long ago. today i was simply going through this post so thought of telling that i had got the solution.
Walking my way in making my OS
Post Reply