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
2017-11-04 05:47:07 +00:00

24 lines
361 B
C

#include "logger.h"
#include "protected.h"
#include "paging.h"
#include "timer.h"
static void on_timer();
void main()
{
protected_initialize();
// paging_initialize();
timer_register_handler(on_timer);
timer_initialize(50);
logger_warn("Nothing to do.");
logger_fail("Halt.");
}
void on_timer()
{
logger_info("Timer tick.");
}