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

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
Luca91
Member
Member
Posts: 35
Joined: Wed Oct 09, 2013 12:16 pm

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

Post 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..
Last edited by Luca91 on Thu Jan 16, 2014 7:37 am, edited 1 time in total.
User avatar
iansjack
Member
Member
Posts: 4711
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Page fault while reading from memory written by dma

Post by iansjack »

Well, what does the error code from the exception tell you?
Luca91
Member
Member
Posts: 35
Joined: Wed Oct 09, 2013 12:16 pm

Re: Page fault while reading from memory written by dma

Post 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..
Post Reply