Page 2 of 2

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

Posted: Fri Jun 01, 2012 5:06 am
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?

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

Posted: Fri Jun 01, 2012 5:19 am
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.

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

Posted: Fri Jun 01, 2012 11:48 am
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.

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

Posted: Wed Jun 06, 2012 9:46 am
by hegde1997
for the general protection fault i am getting error code 4452.

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

Posted: Wed Jun 06, 2012 10:06 am
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.

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

Posted: Sat Nov 03, 2012 11:19 am
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.