origionally I intended to allocate all memory first, then remove free ("used") pages when someone wanted to allocate, but that would take too long to boot up, so I changed the logic to dynamically allocate; however this was not entirely
thought through the first time, so in essence the code was mixed and resulted in incosistant allocation. this has been fixed, however cr3 is still not updated nor is actual physical->virtual (and vice versa) mappings setup properly. Still todo is to link the mMap segment tree to actual pages. |
---|
|
src/sys/mm/memory.c |
---|