diff options
author | Marvin Borner | 2020-07-28 21:05:23 +0200 |
---|---|---|
committer | Marvin Borner | 2020-07-28 21:05:23 +0200 |
commit | 7786aca4ebabc78048ca2442b6734e99ba631872 (patch) | |
tree | 270cbf14063e21a39c5071dfd11680d59c406396 /src/main.c | |
parent | 64973103502aafff7d190c3ab271b108bfd62ede (diff) |
Added matrix
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 20 |
1 files changed, 15 insertions, 5 deletions
@@ -9,6 +9,7 @@ #include <keyboard.h> #include <print.h> #include <serial.h> +/* #include <timer.h> */ u32 HEAP = 0x00200000; u32 HEAP_START; @@ -16,21 +17,30 @@ u32 HEAP_START; void main(struct mem_info *mem_info, struct vid_info *vid_info) { HEAP_START = HEAP; // For malloc function - interrupts_install(); - keyboard_install(); - - mem_info++; // TODO: Use the mmap (or remove)! + // Initialize VESA video vesa_init(vid_info->info); u32 terminal_background[3] = { 0, 0, 0 }; vesa_fill(terminal_background); + // Serial connection serial_install(); + serial_print("\nConnected.\n"); + + // Install drivers + interrupts_install(); + /* timer_install(); */ + keyboard_install(); + + // Enable drivers + __asm__("sti"); + + mem_info++; // TODO: Use the mmap (or remove)! ls_root(); gui_init(FONT_PATH); - gui_term_write("Welcome back, " USERNAME ".\n"); + gui_term_write("Wake up, " USERNAME "...\n"); while (1) { }; |