MentOS  0.8.0
The Mentoring Operating System
Macros | Functions | Variables
module.h File Reference

Go to the source code of this file.

Macros

#define MAX_MODULES   10
 The maximum number of modules.
 

Functions

int init_modules (multiboot_info_t *header)
 Ininitialize the modules. More...
 
int relocate_modules (void)
 Relocates modules to virtual mapped low memory, to allow physical unmapping of the first part of the ram. More...
 
uintptr_t get_address_after_modules (void)
 Returns the address where the modules end. More...
 

Variables

multiboot_module_t modules [MAX_MODULES]
 List of modules.
 

Detailed Description

Function Documentation

◆ get_address_after_modules()

uintptr_t get_address_after_modules ( void  )

Returns the address where the modules end.

Returns
Address after the modules.

◆ init_modules()

int init_modules ( multiboot_info_t header)

Ininitialize the modules.

Parameters
headerMultiboot info used to initialize the modules.
Returns
1 on success, 0 on error.

◆ relocate_modules()

int relocate_modules ( void  )

Relocates modules to virtual mapped low memory, to allow physical unmapping of the first part of the ram.

Returns
1 on success, 0 on failure.