Where to keep the first address for memory allocator.

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
ammubhave
Posts: 11
Joined: Tue Jun 07, 2011 8:17 am

Where to keep the first address for memory allocator.

Post by ammubhave »

I find everywhere how to implement dynamic memory management an stuffs like that.

But no where it is given where to keep the base address for the allocation.
In the wiki, it is given " But it is not alone: BIOS data structures, memory-mapped hardware registers etc. populate the address space.". But EXACTLY how much space? Which addresses should be skipped?
Which address will be the best address to start allocation from?
Yargh
Member
Member
Posts: 56
Joined: Sat Jun 12, 2010 9:04 pm
Location: Somewhere else.

Re: Where to keep the first address for memory allocator.

Post by Yargh »

You have to get a memory map to be able to find memory holes to map around... On the wiki it gives you methods to do this, or you could have a multiboot-compliant bootloader(GRUB, syslinux, etc) pass you the memory map.
Wait... What?
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: Where to keep the first address for memory allocator.

Post by Love4Boobies »

"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
Post Reply