mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 07:07:23 +00:00
Fix bug where Console::the() was initialized too late.
Yet another problem due to lack of BSS zeroing in the kernel loader...
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user