How to implement Dynamically Growing Heap

蹲街弑〆低调 提交于 2020-01-16 12:18:33

问题


Finished implementing the minimal Heap structure with awesome help from Micheal . Right now I have one thing missing so it dynamically grows. As you can see in this image, it isn't dynamic:

Instead of having a fixed size when I do pmm_map_physical_virtual(0x800000,0xC0800000), the max I can go to is 8MB which is from 0xC00000000-0xC0800000 ... but then I have to be aware not to overwrite the kernel, so I will technically have less than 8MB . Is there a way so that the heap just continues from the end of the kernel and grows dynamically? They said this is what I was missing from my memory management. And is this a good idea to do this?

来源:https://stackoverflow.com/questions/39152751/how-to-implement-dynamically-growing-heap

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!