Attempt 2 #2

Open
seeseemelk wants to merge 56 commits from attempt-2 into master
Showing only changes of commit c3c01049bf - Show all commits

View File

@@ -252,15 +252,33 @@ void kernel_main(uint32_t magic, uint32_t addr) {
offset_print("TSS initialized\n");
init_syscalls();
EARLY_PRINT("SYSCALL ");
offset_print("Syscalls initialized\n");
keyboard_init();
EARLY_PRINT("KBD ");
offset_print("Keyboard initialized\n");
init_process();
EARLY_PRINT("PROC ");
offset_print("Process subsystem initialized\n");
/* If the early VGA canary at 0xB8000 was visible, the display is
* definitely in text mode, regardless of what the GRUB framebuffer
* tag says. Force text mode so vga_init doesn't try to use a
* pixel framebuffer that isn't actually being displayed. */
if (fb_info.type == FB_TYPE_RGB) {
offset_print(" Overriding fb type from RGB to EGA_TEXT (early VGA visible)\n");
fb_info.type = FB_TYPE_EGA_TEXT;
fb_info.addr = 0x000B8000;
fb_info.width = 80;
fb_info.height = 25;
fb_info.bpp = 16;
fb_info.pitch = 80 * 2;
}
init_drivers();
EARLY_PRINT("DRV ");
offset_print("Drivers initialized\n");
/* At this point the VGA driver has been initialized and taken over