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?
Where to keep the first address for memory allocator.
Re: Where to keep the first address for memory allocator.
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?
- Love4Boobies
- Member
- Posts: 2111
- Joined: Fri Mar 07, 2008 5:36 pm
- Location: Bucharest, Romania
Re: Where to keep the first address for memory allocator.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
[ Project UDI ]