mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:18:11 +00:00
Also send console output to port 0xe9 (bochs console.)
This is very handy for debugging.
This commit is contained in:
parent
63e253bac9
commit
77821da42f
2 changed files with 8 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue