Added PIT support, sleep() exists!

This commit is contained in:
2024-03-11 21:00:55 +01:00
parent 18f33ce7db
commit ac281835db
4 changed files with 47 additions and 0 deletions
+3
View File
@@ -3,6 +3,7 @@
#include "isrs.h"
#include "irq.h"
#include "keyboard.h"
#include "timer.h"
#include "system.h"
void main() {
@@ -13,6 +14,8 @@ void main() {
sti();
setupKeyboard();
setupTimer();
timerPhase(100); // 1 tick per 10ms
clear(0x0f);
print("kern.\n\n", 0x0f);