mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-04 02:23:10 +00:00
24 lines
358 B
C
24 lines
358 B
C
#include "screen.h"
|
|
#include "idt.h"
|
|
#include "isrs.h"
|
|
#include "irq.h"
|
|
#include "keyboard.h"
|
|
#include "timer.h"
|
|
#include "system.h"
|
|
|
|
void main() {
|
|
// Interrupts
|
|
setupIdt();
|
|
setupIsrs();
|
|
setupIrqs();
|
|
sti();
|
|
|
|
setupKeyboard();
|
|
setupTimer();
|
|
timerPhase(100); // 1 tick per 10ms
|
|
|
|
clear(0x0f);
|
|
print("kern.\n\n", 0x0f);
|
|
}
|
|
|