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/io/io.h | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'src/kernel/io/io.h') diff --git a/src/kernel/io/io.h b/src/kernel/io/io.h index e72d794..a34bd21 100644 --- a/src/kernel/io/io.h +++ b/src/kernel/io/io.h @@ -52,8 +52,20 @@ void init_serial(); /** * Write a string to the serial port (QEMU logging) - * @param data + * @param data The string that should get transmitted */ -void write_serial(char *data); +void serial_write(char *data); + +/** + * Write a hex number to the serial port (QEMU logging) + * @param n The hex number that should get transmitted + */ +void serial_write_hex(int n); + +/** + * Write a dec number to the serial port (QEMU logging) + * @param n The dec number that should get transmitted + */ +void serial_write_dec(int n); #endif -- cgit v1.2.3