Page 1 of 1
paging problem
Posted: Tue Dec 21, 2010 4:55 am
by psnix
hi
when I expand my heap (and change page table with adding new pages to it) . I get an error!
changing entrys of page table and directory is enough or i must do somthing else like as invaliding it
Re: paging problem
Posted: Tue Dec 21, 2010 6:37 am
by Armin
What kind of error do you get? A page fault?
If so, you can retrieve additional information
- from CR2 (the address, where the page fault was generated)
- in your interrupt service routine: along with the exception number you get an error code for this exception, ie. for the page fault. It tells you if it was an read or write access which caused the page fault etc.
Re: paging problem
Posted: Tue Dec 21, 2010 2:01 pm
by piranha
Please, ask smart questions. What is the error exactly? Also, we wont be able to help at all without some reference to your code, so please post what you're doing. Also, please describe any debugging steps you've taken so far (if you haven't done that, I recommend that first).
-JL
Re: paging problem
Posted: Tue Dec 21, 2010 4:08 pm
by psnix
hi
I'm update my svn:
http://sourceforge.net/projects/arax/develop
when in src/mmngr.c i remove lines 178-186 i got a page fault:
i think error is in the updating page_table entrys and they not updated on the MMU
Re: paging problem
Posted: Wed Dec 22, 2010 1:13 pm
by gerryg400
Megan65 wrote:hi
when I expand my heap (and change page table with adding new pages to it) . I get an error!
changing entrys of page table and directory is enough or i must do somthing else like as invaliding it
It depends. Some bits can be changed without invalidating the tlb. e.g. the present bit may be set.