mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-04 18:43:11 +00:00
Added PIT support, sleep() exists!
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user