MMU initialisation
First off, we start by loading the needed modules - mmu_mod
, frames_mod
and heap_mod
.
mmu_mod
will allocate and map the first chunk of memory to use. It does so without knowing much about memory allocation - just takes a first fit chunk from the physical memory map, passed to us by the bootloader. Parts of this memory will be used by frames_mod
and heap_mod
as well, so we need a way to know how much memory they would need.