aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/kernel.c
diff options
context:
space:
mode:
authorMarvin Borner2019-10-12 17:54:25 +0200
committerMarvin Borner2019-10-12 17:54:25 +0200
commitef4e182a426a405f0d469a85f7513e01fd9ee75c (patch)
tree0465a7185c3157ca4cd4c1fcd5851d83a9065f50 /src/kernel/kernel.c
parent007c5b5c429d9d524b3f88884cbebab73d15a7ea (diff)
Testing vesa text display
I absolutely don't know why it doesn't work :(
Diffstat (limited to 'src/kernel/kernel.c')
-rw-r--r--src/kernel/kernel.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/kernel/kernel.c b/src/kernel/kernel.c
index 8c0b875..6c19e17 100644
--- a/src/kernel/kernel.c
+++ b/src/kernel/kernel.c
@@ -3,6 +3,7 @@
#include "gdt/gdt.h"
#include "interrupts/interrupts.h"
#include "input/input.h"
+#include "io/io.h"
#include "timer/timer.h"
#include "paging/paging.h"
#include "paging/kheap.h"
@@ -13,9 +14,10 @@ void init() {
idt_install();
isrs_install();
irq_install();
+ init_serial();
// terminal_initialize(); // TODO: Replace VGA functions with VESA
- init_kheap();
- page_init();
+ // init_kheap();
+ // page_init();
// keyboard_install();
// mouse_install();
asm volatile ("sti");
@@ -24,17 +26,19 @@ void init() {
void kernel_main(void) {
set_optimal_resolution();
init();
- // info("Melvix loaded successfully!");
+ // info("Melvix loaded successfully!\n\n");
// info("Loading VESA...");
- /* if (vesa_available) {
- info("Loaded VESA!");
+ vesa_draw_string("test");
+
+ if (vesa_available) {
+ write_serial("Loaded VESA!");
} else {
- warn("VESA loading failed!");
- } */
+ write_serial("VESA loading failed!");
+ }
// __asm__ ("div %0" :: "r"(0)); // Exception testing x/0
loop:
asm volatile ("hlt");
goto loop;
-} \ No newline at end of file
+}