aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/system.h
diff options
context:
space:
mode:
authorMarvin Borner2019-10-12 23:28:01 +0200
committerMarvin Borner2019-10-12 23:31:27 +0200
commit876df2125f4f24803d5471894e5308e7425ebfd2 (patch)
treea91b066e93c6694c41384ae8f2e296167715768c /src/kernel/system.h
parentb2f80382659e739d5e37eefff1ebcdfd023bb9fb (diff)
Paging and heap rewrite
VESA drawing causes a Page fault because it tries to use a pointer to the framebuffer which was created before the paging has been initialized. If the resolution is set after the paging has been initialized the CPU throws a triple fault because the int32 call can not happen with paging turned on. To be fixed soon!
Diffstat (limited to 'src/kernel/system.h')
-rw-r--r--src/kernel/system.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/system.h b/src/kernel/system.h
index 8cd4244..53e567d 100644
--- a/src/kernel/system.h
+++ b/src/kernel/system.h
@@ -121,7 +121,7 @@ static inline void panic(char *msg) {
terminal_write_string("PANIC: ");
terminal_write_string(msg);
terminal_write_string(" - System Halted!");
- write_serial(msg);
+ serial_write(msg);
loop:
asm volatile ("hlt");
goto loop;