|
MentOS
0.8.0
The Mentoring Operating System
|
Kernel main function. More...
Macros | |
| #define | __DEBUG_HEADER__ "[KERNEL]" |
| Change header. | |
| #define | __DEBUG_LEVEL__ LOGLEVEL_NOTICE |
| Set log level. | |
Functions | |
| static void | print_ok (void) |
| Prints [OK] at the current row and column 60. | |
| static void | print_fail (void) |
| Prints [FAIL] at the current row and column 60. | |
| int | kmain (boot_info_t *boot_informations) |
| Entry point of the kernel. More... | |
Variables | |
| char * | module_start [MAX_MODULES] |
| Describe start address of grub multiboot modules. | |
| char * | module_end [MAX_MODULES] |
| Describe end address of grub multiboot modules. | |
| uint32_t | _multiboot_header_start |
| Points at the multiheader grub info, starting address. | |
| uint32_t | _multiboot_header_end |
| Points at the multiheader grub info, ending address. | |
| uint32_t | _text_start |
| Points at the kernel code, starting address. | |
| uint32_t | _text_end |
| Points at the kernel code, ending address. | |
| uint32_t | _rodata_start |
| Points at the read-only kernel data, starting address. | |
| uint32_t | _rodata_end |
| Points at the read-only kernel data, ending address. | |
| uint32_t | _data_start |
| Points at the read-write kernel data initialized, starting address. | |
| uint32_t | _data_end |
| Points at the read-write kernel data initialized, ending address. | |
| uint32_t | _bss_start |
| Points at the read-write kernel data uninitialized an kernel stack, starting address. | |
| uint32_t | _bss_end |
| Points at the read-write kernel data uninitialized an kernel stack, ending address. | |
| uint32_t | stack_top |
| Points at the top of the kernel stack. | |
| uint32_t | stack_bottom |
| Points at the bottom of the kernel stack. | |
| uint32_t | end |
| Points at the end of kernel code/data. | |
| uintptr_t | initial_esp = 0 |
| Initial ESP. More... | |
| boot_info_t | boot_info |
| The boot info. | |
| int | runtests = 0 |
| Flag indicating if we are running tests instead of an interactive session. | |
Kernel main function.
| int kmain | ( | boot_info_t * | boot_informations | ) |
Entry point of the kernel.
| boot_informations | Information concerning the boot. |
| uintptr_t initial_esp = 0 |
Initial ESP.
The initial stack pointer.