MentOS  0.8.0
The Mentoring Operating System
module.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include "multiboot.h"
9 #include "stdint.h"
10 
12 #define MAX_MODULES 10
13 
15 
19 int init_modules(multiboot_info_t *header);
20 
24 int relocate_modules(void);
25 
uintptr_t get_address_after_modules(void)
Returns the address where the modules end.
Definition: module.c:71
multiboot_module_t modules[MAX_MODULES]
List of modules.
Definition: module.c:20
int init_modules(multiboot_info_t *header)
Ininitialize the modules.
Definition: module.c:22
#define MAX_MODULES
The maximum number of modules.
Definition: module.h:12
int relocate_modules(void)
Relocates modules to virtual mapped low memory, to allow physical unmapping of the first part of the ...
Definition: module.c:41
Data structures used for multiboot.
Standard integer data-types.
unsigned uintptr_t
Define the unsigned 32-bit pointer.
Definition: stdint.h:36
Multiboot information structure.
Definition: multiboot.h:130
Stores information about a module.
Definition: multiboot.h:101