
Memory Map. More...
#include <boot/multiboot/data.h>
Public Member Functions | |
void * | getStartAddress () const |
Get start of this memory area. More... | |
void * | getEndAddress () const |
Get end of this memory area. More... | |
bool | isAvailable () const |
Is the memory marked as usable. More... | |
Memory * | getNext () const |
Get the next memory area. More... | |
Memory Map.
The boot loader queries the BIOS for a memory map and stores its result in (something like) a linked list. However, this list may not be complete, can have contradictory entries and does not take the location of your kernel or any boot modules into account. (Anyways, it is still the best memory map you will have in StuBS...)
MULTIBOOT_MEMORY_INFO
flag in the multiboot header (see boot/multiboot/config.inc
)!void * Multiboot::Memory::getStartAddress | ( | ) | const |
Get start of this memory area.
void * Multiboot::Memory::getEndAddress | ( | ) | const |
Get end of this memory area.
bool Multiboot::Memory::isAvailable | ( | ) | const |
Is the memory marked as usable.
true
if available, false
if not usable. Memory * Multiboot::Memory::getNext | ( | ) | const |
Get the next memory area.