The k project

Memory manager


You will first have to enter the protected mode, and to set 5 segments:

The creation of the userland segment may be postponed to the binary loading. In fact, you cannot determine the size of the code segment without looking at the binary.


Some memory areas are already busy, you should take care of this when creating the user data and code segment. You can use the multiboot_info_t structure given by GRUB to find those areas: