OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Apr 23, 2024 1:00 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Physical memory management help
PostPosted: Mon Jul 31, 2017 4:53 am 
Offline
Member
Member
User avatar

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

_________________
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!


Last edited by Coconut9 on Tue Aug 01, 2017 2:05 am, edited 2 times in total.

Top
 Profile  
 
 Post subject: Re: Physical memory management help
PostPosted: Mon Jul 31, 2017 5:12 am 
Offline
Member
Member

Joined: Tue Mar 04, 2014 5:27 am
Posts: 1108
Write it? Checked the wiki? CPU documentation?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 97 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group