Physical memory management help

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
Coconut9
Member
Member
Posts: 51
Joined: Sat May 20, 2017 1:25 am
Location: PCI bus: 3, slot: 9, function: 5

Physical memory management help

Post by Coconut9 »

After I made a code the gets the memory map from BIOS and cuts the memory blocks that the kernel will use and the blocks that the VGA uses, the code creates an array that have the following format:
1 DWORD memory address that the 4KB memory blocks start.
1 DWORD the count of 4KB memory blocks that are in that address one after another.

Αnd continues with that way. (the number of this entries is in the ecx register).

Now I want a way to store the memory blocks (for example with bitmap) but to not map some of them but all!
I cannot find any code that maps all the blocks.
Do someone knows a way to do that (an algorithm map all blocks)?
Last edited by Coconut9 on Tue Aug 01, 2017 2:05 am, edited 2 times in total.
How people react when a new update of your OS is coming:
Linux user: Cool, more free stuff!
Mac user: Ooh I have to pay!
Windows user: Ah not again!
alexfru
Member
Member
Posts: 1112
Joined: Tue Mar 04, 2014 5:27 am

Re: Physical memory management help

Post by alexfru »

Write it? Checked the wiki? CPU documentation?
Post Reply