Page 1 of 1

paging again

Posted: Fri Oct 13, 2006 5:22 am
by Al2
Hi.

It is yet another question about paging.

I am playing with OS, and I've started from zero.
So now I am trying initialize paging.
I took snippet from L4 but I don't work properly.

1. I Link kernel such way that it have two parts, one direct mapped and another with offset.

2. initialize pdir and ptables

3. set CR3 with pdir address
4. turn on paging by setting CR0
5. jump to continue initialization

It doesn't work, but if I link all without offset all works ok, even with paging.

offset is 0xF0000000

Maybe I have lost something which should be done?

Al.

Re:paging again

Posted: Sun Oct 15, 2006 3:28 am
by Combuster
if you have read the FAQ you might have noticed that everything is linked to one address. Not two

Re:paging again

Posted: Thu Oct 19, 2006 3:06 pm
by Al
I've made another mistake
I didn't change code and data segment to the new location in high half of address space.

Al.