Page 1 of 1
problem with paging
Posted: Thu Apr 24, 2008 9:37 am
by aztex
when i set the paging bit in cro register to 1..
it just restarts..
y??
Posted: Thu Apr 24, 2008 10:01 am
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]
Posted: Thu Apr 24, 2008 12:35 pm
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.