Add: cpuid, meminfo, system info; + minor fixes
This commit is contained in:
@@ -14,9 +14,12 @@ char* ascii_title =
|
||||
" o888ooo888 o888o 88ooo88 8o o888o o888o o888o o888o 88ooo88 o88oooo888\n\n"
|
||||
" --------------------------------- v0.3.45 --------------------------------\n\n";
|
||||
|
||||
int kmain(int retvalue)
|
||||
unsigned int g_multiboot_info_address;
|
||||
|
||||
void kmain(unsigned int multiboot_info_address)
|
||||
{
|
||||
|
||||
g_multiboot_info_address = multiboot_info_address;
|
||||
|
||||
init_serial();
|
||||
log("serial connection established", 3);
|
||||
gdt_install();
|
||||
@@ -29,18 +32,14 @@ int kmain(int retvalue)
|
||||
__asm__ __volatile__("sti");
|
||||
log("initialized IRQs", 2),
|
||||
|
||||
log("kernel started", 2);
|
||||
|
||||
clear();
|
||||
|
||||
colorputs(ascii_title, 10);
|
||||
colorputs(" by @xamidev - star the repo for a cookie!\n\n", 14);
|
||||
|
||||
// TODO: Grub modules to load programs
|
||||
|
||||
|
||||
timer_install();
|
||||
log("initialized timer handler", 2);
|
||||
keyboard_install();
|
||||
log("initialized keyboard driver", 2);
|
||||
shell_install();
|
||||
|
||||
return retvalue;
|
||||
log("started system shell", 2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user