aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/graphics/vga.c
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/graphics/vga.c
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/graphics/vga.c')
-rw-r--r--src/kernel/graphics/vga.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/kernel/graphics/vga.c b/src/kernel/graphics/vga.c
index da2a7f4..a470af8 100644
--- a/src/kernel/graphics/vga.c
+++ b/src/kernel/graphics/vga.c
@@ -146,18 +146,16 @@ void terminal_put_keyboard_char(char c) {
void terminal_write_string(const char *data) {
// terminal_write(data, strlen(data));
- write_serial(data);
+ serial_write(data);
}
void terminal_write_number(int data) {
- char converted[128];
- itoa(data, converted, 10);
- write_serial(converted);
+ serial_write_dec(data);
// terminal_write(converted, strlen(converted));
}
void terminal_write_line(const char *data) {
- write_serial(data);
+ serial_write(data);
terminal_column = 0;
// terminal_write_string(data);
terminal_column = 0;