MentOS  0.8.0
The Mentoring Operating System
Macros | Functions
multiboot.c File Reference

Macros

#define __DEBUG_HEADER__   "[MTBOOT]"
 Change header.
 
#define __DEBUG_LEVEL__   LOGLEVEL_NOTICE
 Set log level.
 

Functions

multiboot_memory_map_tmmap_first_entry (multiboot_info_t *info)
 Returns the first mmap entry. More...
 
multiboot_memory_map_tmmap_first_entry_of_type (multiboot_info_t *info, uint32_t type)
 The first entry of the given type. More...
 
multiboot_memory_map_tmmap_next_entry (multiboot_info_t *info, multiboot_memory_map_t *entry)
 Returns the next mmap entry. More...
 
multiboot_memory_map_tmmap_next_entry_of_type (multiboot_info_t *info, multiboot_memory_map_t *entry, uint32_t type)
 Returns the next mmap entry of the given type. More...
 
char * mmap_type_name (multiboot_memory_map_t *entry)
 Returns the type of the entry as string. More...
 
multiboot_module_tfirst_module (multiboot_info_t *info)
 Finds the first module. More...
 
multiboot_module_tnext_module (multiboot_info_t *info, multiboot_module_t *mod)
 Finds the next module after the one we provide. More...
 
void dump_multiboot (multiboot_info_t *mbi)
 Prints as debugging output the info regarding the multiboot. More...
 

Detailed Description

Function Documentation

◆ dump_multiboot()

void dump_multiboot ( multiboot_info_t mboot_ptr)

Prints as debugging output the info regarding the multiboot.

Parameters
mboot_ptrThe pointer to the multiboot information.

◆ first_module()

multiboot_module_t* first_module ( multiboot_info_t info)

Finds the first module.

Parameters
infoThe multiboot info from which we extract the information.
Returns
Pointer to the first module.

◆ mmap_first_entry()

multiboot_memory_map_t* mmap_first_entry ( multiboot_info_t info)

Returns the first mmap entry.

Parameters
infoThe multiboot info from which we extract the entry.
Returns
The first entry.

◆ mmap_first_entry_of_type()

multiboot_memory_map_t* mmap_first_entry_of_type ( multiboot_info_t info,
uint32_t  type 
)

The first entry of the given type.

Parameters
infoThe multiboot info from which we extract the entry.
typeThe type of entry we are looking for.
Returns
The first entry of the given type.

◆ mmap_next_entry()

multiboot_memory_map_t* mmap_next_entry ( multiboot_info_t info,
multiboot_memory_map_t entry 
)

Returns the next mmap entry.

Parameters
infoThe multiboot info from which we extract the entry.
entryThe current entry.
Returns
The next entry.

◆ mmap_next_entry_of_type()

multiboot_memory_map_t* mmap_next_entry_of_type ( multiboot_info_t info,
multiboot_memory_map_t entry,
uint32_t  type 
)

Returns the next mmap entry of the given type.

Parameters
infoThe multiboot info from which we extract the entry.
entryThe current entry.
typeThe type of entry we are looking for.
Returns
The next entry of the given type.

◆ mmap_type_name()

char* mmap_type_name ( multiboot_memory_map_t entry)

Returns the type of the entry as string.

Parameters
entryThe current entry.
Returns
String representing the type of entry.

◆ next_module()

multiboot_module_t* next_module ( multiboot_info_t info,
multiboot_module_t mod 
)

Finds the next module after the one we provide.

Parameters
infoThe multiboot info from which we extract the information.
modThe current module.
Returns
Pointer to the next module.