1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2024-10-30 12:03:52 -04:00
kernel/arch/main.c

20 lines
402 B
C

#include "multiboot.h"
#include "logger.h"
#include "protected.h"
void main(struct KernelMQ_Multiboot_Info multiboot_info)
{
logger_initialize();
print_multiboot_info(multiboot_info);
logger_info("Kernel initialization started.");
protected_initialize();
asm volatile ("int $0x3");
asm volatile ("int $0x4");
logger_warn("Nothing to do.");
logger_fail("Halt.");
}