Page 1 of 1

[SOLVED]Page fault while reading from memory written by dma

Posted: Thu Jan 16, 2014 7:10 am
by Luca91
Hello mates,
I've implemented the floppy disk driver (FDC/FDD), and I'm using DMA to copy from floppy disk sectors to 0x1000 memory location.
It seems to work, and I get the interrupt when the copy is completed, but when I try to read from 0x1000 I get a page fault :?

What do you think about ? read/write failed ??

Many thanks..

Re: Page fault while reading from memory written by dma

Posted: Thu Jan 16, 2014 7:21 am
by iansjack
Well, what does the error code from the exception tell you?

Re: Page fault while reading from memory written by dma

Posted: Thu Jan 16, 2014 7:36 am
by Luca91
Hi, I've fixed it thanks anyway iansjack :)
I realized that I forgot to deinit that memory region, so that's why I got that pagefault..