Memory managment - how to?

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
User avatar
stevenup7002
Member
Member
Posts: 60
Joined: Tue Sep 20, 2005 11:00 pm
Location: Ireland
Contact:

Memory managment - how to?

Post by stevenup7002 »

Hey, does anyone know any good tutorials on memory managment? I'm stuck and dont know where to start coding, I have gotten past the bootloader and bootstrap and I am working on the kernel. Any help will be highly apriciated

-Steven
User avatar
xenos
Member
Member
Posts: 1121
Joined: Thu Aug 11, 2005 11:00 pm
Libera.chat IRC: xenos1984
Location: Tartu, Estonia
Contact:

Re: Memory managment - how to?

Post by xenos »

Da_Maestro
Member
Member
Posts: 144
Joined: Tue Oct 26, 2004 11:00 pm
Location: Australia

Re: Memory managment - how to?

Post by Da_Maestro »

My OS manages memory by keeping a linked list of all the free blocks of memory.

If you want the code give me a buzz ([email protected])

However I don't know if my code is the best, since my OS has a bug where if the kernel is bigger than 22k it refuses to boot (but it hangs before this code is initialised so the source of this bug beats me lol)

Adam
Two things are infinite: The universe and human stupidity. But I'm not quite sure about the universe.
--- Albert Einstein
User avatar
deadmutex
Member
Member
Posts: 85
Joined: Wed Sep 28, 2005 11:00 pm

Re: Memory managment - how to?

Post by deadmutex »

You can also try http://www.mega-tokyo.com/osfaq2/index.php. I found this site very helpful in my early stages.
User avatar
stevenup7002
Member
Member
Posts: 60
Joined: Tue Sep 20, 2005 11:00 pm
Location: Ireland
Contact:

Re: Memory managment - how to?

Post by stevenup7002 »

thanks guys, some very good sugestions! :)
Post Reply