From 876df2125f4f24803d5471894e5308e7425ebfd2 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 12 Oct 2019 23:28:01 +0200 Subject: 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! --- src/kernel/graphics/vga.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/kernel/graphics/vga.c') 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; -- cgit v1.2.3