Page 1 of 1

PAGING CR0 CR3 and CR4 problem

Posted: Fri May 16, 2003 1:06 pm
by Thunder
Hi,

I'm trying to make paging on my OS,
First:
When I'm trying to configure in CR4 PGE, PAE and PSE Bochs just say that I cannot write to CR4, when I'm Trying to enable paging in CR0 bit 31 Bochs puts: >>PANIC<< prefetch: running in bogus memory

Whats wrong??? Help ???

Re:PAGING CR0 CR3 and CR4 problem

Posted: Fri May 16, 2003 1:27 pm
by Tim
Problem 1: Bochs doesn't support those CR4 bits.

Problem 2: You have some problem in the code that enables paging.

Re:PAGING CR0 CR3 and CR4 problem

Posted: Sat May 17, 2003 11:26 am
by Pype.Clicker
just a stupid question: did you set up a page directory in CR3 before you enable paging ? if not, your mapping will be quite random and there are little chance that the instruction pointer will refer a valid memory page (remember that BOCHS says "running in bogus memory" everytime you try to execute on some page that has never been written before ...)

Re:PAGING CR0 CR3 and CR4 problem

Posted: Sat May 17, 2003 11:31 am
by Thunder
I have everything made, and it works...thanks for help ;)

Yes it is...in CR4 cannot write in Bochs