paging problem

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
psnix
Member
Member
Posts: 50
Joined: Fri Oct 24, 2008 12:34 pm

paging problem

Post 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
Armin
Posts: 10
Joined: Sun Nov 22, 2009 6:16 am

Re: paging problem

Post 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.
User avatar
piranha
Member
Member
Posts: 1391
Joined: Thu Dec 21, 2006 7:42 pm
Location: Unknown. Momentum is pretty certain, however.
Contact:

Re: paging problem

Post 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
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
psnix
Member
Member
Posts: 50
Joined: Fri Oct 24, 2008 12:34 pm

Re: paging problem

Post 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
gerryg400
Member
Member
Posts: 1801
Joined: Thu Mar 25, 2010 11:26 pm
Location: Melbourne, Australia

Re: paging problem

Post 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.
If a trainstation is where trains stop, what is a workstation ?
Post Reply