OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Nov 22, 2019 9:22 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Create an heap for the kernel
PostPosted: Fri Nov 08, 2019 3:32 pm 
Offline

Joined: Mon Oct 21, 2019 11:38 am
Posts: 7
I just want to know if I understood the process of implementing the kernel heap correctly.
I have an higher half kernel that starts around 0xC0000000. The layers are KHEAP -> VMM -> PMM.
That’s how I think it should work: kmalloc() has a list of free memory blocks. If it’s null or there isn’t enough space, it asks a page from the virtual memory manager that maps it about from 3,5GB to 4GB. It has to be contiguous.

Can you please tell me if I’m wrong?


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

All times are UTC - 6 hours


Who is online

Users browsing this forum: MSN [Bot] and 20 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