Memory managment

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
Alpha
Posts: 15
Joined: Fri Apr 10, 2009 7:04 am
Location: The Netherlands

Memory managment

Post by Alpha »

Hi

First, I'm dutch so my English isn't always right.

I'm a beginner in OS development. I have build my first kernel. This kernel was a simple 'Hello World' kernel and has some support for irq and so on. But now I want to expand it to get a kernell that is more functional than a 'hello world' kernel.

My kernel is build in C and uses GRUB as bootloader, I've build the kernel from this tutorial: http://www.osdever.net/bkerndev/index.php but i have modified it so it isn't exact like the kernel described in the tut.

My main problem now is the psychical memory managment. I have seen a lot of information about how the principal works but i don't know were to start. I know that i have to setup a stack or a bitmap to manage which block of memory is used or not.

But i don't know how to do that.

Can anybody give me some information about setting up a bitmap or a stack?
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: Memory managment

Post by Troy Martin »

Welcome!

You may want to check out JamesM's tutorials (http://www.jamesmolloy.co.uk/), since it has a lot of information that you can use.

EDIT: Another great source of information is our wiki (the link is at the top with most forum themes!)
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
quok
Member
Member
Posts: 490
Joined: Wed Oct 18, 2006 10:43 pm
Location: Kansas City, KS, USA

Re: Memory managment

Post by quok »

There's also quite a few good memory management tutorials over at http://www.osdever.net.
User avatar
Creature
Member
Member
Posts: 548
Joined: Sat Dec 27, 2008 2:34 pm
Location: Belgium

Re: Memory managment

Post by Creature »

Troy Martin wrote:Welcome!

You may want to check out JamesM's tutorials (http://www.jamesmolloy.co.uk/), since it has a lot of information that you can use.

EDIT: Another great source of information is our wiki (the link is at the top with most forum themes!)
Only note that when you're going to use JamesM's tutorials, use the theory and text from the website and the downloadable code, not the code samples on the site as the source code is more recent.
When the chance of succeeding is 99%, there is still a 50% chance of that success happening.
Alpha
Posts: 15
Joined: Fri Apr 10, 2009 7:04 am
Location: The Netherlands

Re: Memory managment

Post by Alpha »

Thanks for reply.

I have downloaded the source code from JamesM's tutorials.
For me, this code is helpfull because it looks like my code.
Post Reply