mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 19:29:16 +00:00
Oops, StringImpl's "the empty string" global was not always initialized.
These "oops forgot to initialize" bugs are getting annoying...
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
#include "Console.h"
|
||||
|
||||
#define TEST_VFS
|
||||
//#define TEST_ELF_LOADER
|
||||
#define TEST_ELF_LOADER
|
||||
//#define TEST_CRASHY_USER_PROCESSES
|
||||
|
||||
static void motd_main() NORETURN;
|
||||
@@ -102,8 +102,6 @@ static void init_stage2()
|
||||
// Anything that registers interrupts goes *after* PIC and IDT for obvious reasons.
|
||||
Syscall::initialize();
|
||||
|
||||
VirtualFileSystem::initializeGlobals();
|
||||
|
||||
extern void panel_main();
|
||||
|
||||
new Task(panel_main, "panel", IPC::Handle::PanelTask, Task::Ring0);
|
||||
@@ -203,6 +201,9 @@ void init()
|
||||
|
||||
MemoryManager::initialize();
|
||||
|
||||
VirtualFileSystem::initializeGlobals();
|
||||
StringImpl::initializeGlobals();
|
||||
|
||||
auto keyboard = make<Keyboard>();
|
||||
|
||||
PIT::initialize();
|
||||
|
||||
Reference in New Issue
Block a user