Page 1 of 1
Paging
Posted: Wed Jul 02, 2008 4:50 am
by itisiuk
Im busy re-writing my os again
anyway, have been trying to write some better paging routine this time and have been failing miserably.
anyway i found this flux oskit thing with what looks like some good paging routines and am wondering if anyone has used them and if
they are any good.
i have already re-worked them from my kernel and have posted the files below.
i havent had time to test it yet as im very busy at the min. if anyone can see any obvious errors in the code please let me know.
Re: Paging
Posted: Wed Jul 02, 2008 4:52 am
by Jeko
itisiuk wrote:Im busy re-writing my os again
anyway, have been trying to write some better paging routine this time and have been failing miserably.
anyway i found this fluxh oskit this with what looks like some good paging routines and am wonder if anyone hase used them and if
they are any good.
i have already re-worked them from my kernel and have posted the files below.
i havent had time to test it yet as im very busy at the min. if anyone can see any obvious errors in the code please let me know.
the oskit is from the Utah university. So I think it should be without any error, especially in something so important like the paging.
Re: Paging
Posted: Thu Jul 03, 2008 8:14 am
by itisiuk
well, after writing about 20 different ways to do paging and manage the physical mem i finally found there was nothing wrong with any of them.
the problem was this tiny piece of code
push ebx
can anyone guess what it is
thank fod for that

Re: Paging
Posted: Thu Jul 03, 2008 8:17 am
by suthers
fod
Did you forget to do a pop for it, so the return value on the stack for the function was wrong?
Jules
Re: Paging
Posted: Thu Jul 03, 2008 8:34 am
by itisiuk
nope, i just forgot to push the muliboot info stucture so nothing worked at all. it took me 2 weeks to find that
](./images/smilies/eusa_wall.gif)
,
one good thing though is ill never run out of paging routines again
Re: Paging
Posted: Thu Jul 03, 2008 8:35 am
by suthers
itisiuk wrote:nope, i just forgot to push the muliboot info stucture so nothing worked at all. it took me 2 weeks to find that
](./images/smilies/eusa_wall.gif)
,
one good thing though is ill never run out of paging routines again
