aboutsummaryrefslogtreecommitdiff
path: root/src/kernel.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel.cc')
-rw-r--r--src/kernel.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel.cc b/src/kernel.cc
index 624f472..1139e3b 100644
--- a/src/kernel.cc
+++ b/src/kernel.cc
@@ -20,7 +20,7 @@ void dump_gdt();
void kernel_main([[maybe_unused]] uint32_t mb_magic, [[maybe_unused]] uint32_t mb_addr) {
SerialPort s0;
- Console::set(&s0);
+ if (s0.self_check()) Console::set(&s0);
CGA terminal;
Console::set(&terminal);