Physical Memory Management (mm_phys.c)

Goals

Large Frames Map (LFM)

Thread safety

Frames Allocation

Frames Releasing

Memory Querying


1 Configurable by changing value of MALLOCABLE_MEMORY_4MB constant (must be less or equal to 512MB)
2 PFN (abbreviation for Physical Frame Number) means physical address expressed in 4kB units (24 bit unsigned integer).
3 Not implemented yet but structures and functions are prepared for addition of this feature in future. Code that is necessary to modify is marked by a comment //TODO (x-lists)
4 A block is only virtual structure used here to simplify the description.
5 PMM means Physical Memory Manager