mirror of
https://github.com/tailix/kernel.git
synced 2024-10-30 12:03:52 -04:00
28 lines
501 B
C
28 lines
501 B
C
#include "multiboot.h"
|
|
#include "logger.h"
|
|
#include "protected.h"
|
|
#include "timer.h"
|
|
|
|
static void on_timer();
|
|
|
|
void init(struct KernelMQ_Multiboot_Info multiboot_info)
|
|
{
|
|
logger_initialize();
|
|
|
|
print_multiboot_info(multiboot_info);
|
|
|
|
logger_info("Kernel initialization started.");
|
|
|
|
protected_initialize();
|
|
|
|
timer_register_handler(on_timer);
|
|
timer_initialize(50);
|
|
|
|
logger_warn("Nothing to do.");
|
|
logger_fail("Halt.");
|
|
}
|
|
|
|
void on_timer()
|
|
{
|
|
logger_info("Timer tick.");
|
|
}
|