From 77821da42f0503fc7cdf7c58602aef5b98558557 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 23 Oct 2018 13:02:38 +0200 Subject: Also send console output to port 0xe9 (bochs console.) This is very handy for debugging. --- Kernel/Console.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Kernel/Console.cpp') diff --git a/Kernel/Console.cpp b/Kernel/Console.cpp index 9ea51a8b24..86809ffe78 100644 --- a/Kernel/Console.cpp +++ b/Kernel/Console.cpp @@ -1,5 +1,9 @@ #include "Console.h" #include "VGA.h" +#include "IO.h" + +// Bytes output to 0xE9 end up on the Bochs console. It's very handy. +#define CONSOLE_OUT_TO_E9 static Console* s_the; @@ -27,6 +31,9 @@ ssize_t Console::read(byte* buffer, size_t bufferSize) void Console::putChar(char ch) { +#ifdef CONSOLE_OUT_TO_E9 + IO::out8(0xe9, ch); +#endif switch (ch) { case '\n': m_cursorColumn = 0; -- cgit v1.2.3