mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:27:35 +00:00
Kernel: Rename Console => ConsoleDevice
This change will help to distinguish between the console device and the Console abstraction layer in the Graphics subsystem later.
This commit is contained in:
parent
0669dd82e2
commit
8f2ddde4cb
7 changed files with 28 additions and 24 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <AK/PrintfImplementation.h>
|
||||
#include <AK/Types.h>
|
||||
#include <Kernel/Console.h>
|
||||
#include <Kernel/ConsoleDevice.h>
|
||||
#include <Kernel/IO.h>
|
||||
#include <Kernel/Process.h>
|
||||
#include <Kernel/SpinLock.h>
|
||||
|
@ -65,10 +65,10 @@ static void console_out(char ch)
|
|||
if (serial_debug)
|
||||
serial_putch(ch);
|
||||
|
||||
// It would be bad to reach the assert in Console()::the() and do a stack overflow
|
||||
// It would be bad to reach the assert in ConsoleDevice()::the() and do a stack overflow
|
||||
|
||||
if (Console::is_initialized()) {
|
||||
Console::the().put_char(ch);
|
||||
if (ConsoleDevice::is_initialized()) {
|
||||
ConsoleDevice::the().put_char(ch);
|
||||
} else {
|
||||
IO::out8(0xe9, ch);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue