problem with paging

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
User avatar
aztex
Member
Member
Posts: 30
Joined: Sun Mar 02, 2008 8:15 am

problem with paging

Post by aztex »

when i set the paging bit in cro register to 1..

it just restarts..

y??
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Post by AJ »

Hi,

We really need more info. Could you post the Bochs final reg dump?

Some possible causes:
1. The current code is not paged in.
2. The current stack is not paged in.
3. You have not loaded CR3.
4. You are going to long mode and are not using the correct 4 level paging structures.
5. You are attempting to read data which is not paged in.
6. You have tried to use a 4MiB page without enabling PSE or in a CPU which does not support PSE.
...

The list goes on. The most likely are options 1-3.

Cheers,
Adam

[edit]You may also like to read the wiki article How To Ask Questions [/edit]
User avatar
einsteinjunior
Member
Member
Posts: 90
Joined: Tue Sep 11, 2007 6:42 am

Post by einsteinjunior »

I am sure the problem comes from the fact that you did not enable
bit 0 in CR0 that is you did not switch to protected mode.
If its not the case then i don't know.
Try using 4Kbyte pages then switch to protected mode before enabling paging.
Post Reply