summaryrefslogtreecommitdiff
path: root/Kernel/init.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-10-30 23:01:48 +0100
committerAndreas Kling <awesomekling@gmail.com>2018-10-30 23:02:06 +0100
commitb833aa416238ae2c9400a894f9f06e8e8cc17865 (patch)
tree760a8a7cf245029ed25af588b48ed97b6a7add5a /Kernel/init.cpp
parent00c21d15902c36242aa3a9a3ef1b22948dcccbf7 (diff)
downloadserenity-b833aa416238ae2c9400a894f9f06e8e8cc17865.zip
Fix bug where Console::the() was initialized too late.
Yet another problem due to lack of BSS zeroing in the kernel loader...
Diffstat (limited to 'Kernel/init.cpp')
-rw-r--r--Kernel/init.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Kernel/init.cpp b/Kernel/init.cpp
index a074614ef5..21a9b348fe 100644
--- a/Kernel/init.cpp
+++ b/Kernel/init.cpp
@@ -218,6 +218,8 @@ void init()
kmalloc_init();
vga_init();
+ auto console = make<Console>();
+
RTC::initialize();
PIC::initialize();
gdt_init();
@@ -225,7 +227,6 @@ void init()
keyboard = new Keyboard;
- auto console = make<Console>();
VirtualConsole::initialize();
tty0 = new VirtualConsole(0, VirtualConsole::AdoptCurrentVGABuffer);
tty1 = new VirtualConsole(1);