paging again
Posted: Fri Oct 13, 2006 5:22 am
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.
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.