1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:08:12 +00:00

Kernel+LibC: Add a DebugLogDevice that forwards everything to I/O port 0xe9.

This is then used to implement the userspace dbgprintf() in a far more
efficient way than what we had before. :^)
This commit is contained in:
Andreas Kling 2019-04-18 16:08:52 +02:00
parent 3b986da643
commit 3817f5f619
7 changed files with 61 additions and 7 deletions

View file

@ -24,6 +24,7 @@
#include <Kernel/Devices/BXVGADevice.h>
#include <Kernel/Net/E1000NetworkAdapter.h>
#include <Kernel/Net/NetworkTask.h>
#include <Kernel/Devices/DebugLogDevice.h>
#define SPAWN_TERMINAL
//#define SPAWN_LAUNCHER
@ -42,6 +43,7 @@ VirtualConsole* tty2;
VirtualConsole* tty3;
KeyboardDevice* keyboard;
PS2MouseDevice* ps2mouse;
DebugLogDevice* dev_debuglog;
NullDevice* dev_null;
VFS* vfs;
@ -151,6 +153,7 @@ extern "C" [[noreturn]] void init()
init_ksyms();
vfs = new VFS;
dev_debuglog = new DebugLogDevice;
auto console = make<Console>();