Add: PIT (sysclock)

This commit is contained in:
xamidev
2024-07-16 22:00:07 +02:00
parent 11fc44ae49
commit af78ad21cd
7 changed files with 32 additions and 24 deletions

25
kmain.c
View File

@@ -23,34 +23,13 @@ int kmain(int retvalue)
clear();
// printf testing
colorputs("Blank OS version 1 iteration 3 minor 20\n", 10);
// TODO: Framebuffer upgrade: color output
// TODO: Serial printf to dump registers on kernel panic
// TODO: Fix scrolling bug (framebuffer driver)
int age = 34;
int problems = 124;
char* name = "xamidev";
printf("Hello %s, you are %d years old and have %d problems. wow %%\n", name, age, problems);
long suchwow = 2934342;
char character = 65;
printf("such number %u\nsuch character %c", suchwow, character);
printf("wow negative %d\n", -3742);
printf("such hex %x %X\n", 0xcafe, 0xdeadbeef);
printf("such pointer %p\n", (void*)0xcafe1234);
for (int i=0; i<10; i++)
{
colorputs("hello colorful world!!\n", i);
}
// Div by zero exception
//printf("Lalala, what a beautiful day! %d", 4/0);
timer_install();
return retvalue;
}