|
LumaOS
v0.1.116
An experimental x86-64 OS
|
Main File for the experimental kernel & OS. More...
#include <stddef.h>#include <stdbool.h>#include <drivers/serial.h>#include <drivers/console.h>#include <drivers/keyboard.h>#include <arch/x86_64/idt.h>#include <arch/x86_64/gdt.h>#include <arch/x86_64/irq.h>#include <arch/x86_64/pic.h>#include <arch/x86_64/pit.h>#include <lib/kstring.h>#include <lib/parser.h>#include <limine/limine.h>#include <kernel/tests.h>#include <kernel/panic.h>#include <kernel/assert.h>#include <kernel/hexdump.h>#include <kernel/kprintf.h>#include <kernel/vars.h>#include <kernel/log.h>#include <mm/pmm.h>#include "arch/x86_64/paging.h"#include "mm/vmm.h"Go to the source code of this file.
Functions | |
| static void | hcf (void) |
| Halts the CPU, outputs the uptime, and outputs the user input to the console. | |
| static void | draw_pixel (struct limine_framebuffer *fb, uint64_t x, uint64_t y, uint8_t red, uint8_t green, uint8_t blue) |
| Draws a pixel to the screen. | |
| static void | limine_request_verification (void) |
| Output the limine request responses. | |
| static bool | output_init (void) |
| Initialize the output systems (serial and framebuffer console) and parse any flags. | |
| static void | interrupt_system_init (void) |
| Initialize the interrupt system. | |
| static void | memory_init (void) |
| Initialize the memory systems (Physical Memory Manager, Virtual Memory Manager, etc) and test them. | |
| static void | gdt_idt_init (void) |
| Initialize and test the GDT & IST. | |
| static void | kernel_self_tests (void) |
| Run some kernel self tests. | |
| __attribute__ ((used, section(".limine_requests"))) | |
| __attribute__ ((used, section(".limine_requests_end"))) | |
| The main function called on OS boot. | |
Variables | |
| int | font_type |
| static bool | out_of_memory_test_1 = false |
| static bool | out_of_memory_test_2 = false |
| static bool | double_free_test = false |
| struct console | main_console |
| The main console info. | |
Main File for the experimental kernel & OS.
Definition in file main.c.
| __attribute__ | ( | (used, section(".limine_requests_end")) | ) |
|
static |
Draws a pixel to the screen.
| fb | Reference to the framebuffer |
| x | The x pixel coordinate starting at 0 |
| y | The y pixel coordinate starting at 0 |
| red | Amount of red in the pixel (0-255) |
| green | Amount of green in the pixel (0-255) |
| blue | Amount of blue in the pixel (0-255) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |