Paging

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
itisiuk
Member
Member
Posts: 98
Joined: Mon Mar 24, 2008 1:46 pm

Paging

Post 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.
User avatar
Jeko
Member
Member
Posts: 500
Joined: Fri Mar 17, 2006 12:00 am
Location: Napoli, Italy

Re: Paging

Post 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.
Rewriting virtual memory manager - Working on ELF support - Working on Device Drivers Handling

http://sourceforge.net/projects/jeko - Jeko Operating System
itisiuk
Member
Member
Posts: 98
Joined: Mon Mar 24, 2008 1:46 pm

Re: Paging

Post 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 :oops: ](*,)
#-o

thank fod for that [-o<
User avatar
suthers
Member
Member
Posts: 672
Joined: Tue Feb 20, 2007 3:00 pm
Location: London UK
Contact:

Re: Paging

Post by suthers »

fod :lol:
Did you forget to do a pop for it, so the return value on the stack for the function was wrong?
Jules
itisiuk
Member
Member
Posts: 98
Joined: Mon Mar 24, 2008 1:46 pm

Re: Paging

Post 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 ](*,) ,
one good thing though is ill never run out of paging routines again
User avatar
suthers
Member
Member
Posts: 672
Joined: Tue Feb 20, 2007 3:00 pm
Location: London UK
Contact:

Re: Paging

Post 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 ](*,) ,
one good thing though is ill never run out of paging routines again
:lol:
Post Reply