diff options
author | Andreas Kling <kling@serenityos.org> | 2020-08-22 16:34:12 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-22 16:34:12 +0200 |
commit | 8a21491d863cd904aeed3b9bbf6d8bc8f537972c (patch) | |
tree | 418c1b0722485380f3160e024d4286f4c95483ee /Kernel/init.cpp | |
parent | 0db7e04c2ebcd16a948523be5a7dbb024ab1d7c4 (diff) | |
download | serenity-8a21491d863cd904aeed3b9bbf6d8bc8f537972c.zip |
Revert "Kernel: Copy command line to a safe place"
This reverts commit 41c005cb140c8a9ae94e6b68456d8d6f1d925a8f.
Diffstat (limited to 'Kernel/init.cpp')
-rw-r--r-- | Kernel/init.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Kernel/init.cpp b/Kernel/init.cpp index d38b91da18..200d852c8a 100644 --- a/Kernel/init.cpp +++ b/Kernel/init.cpp @@ -113,10 +113,6 @@ extern "C" [[noreturn]] void init() { setup_serial_debug(); - // We need to copy the command line before kmalloc is initialized, - // as it may overwrite parts of multiboot! - CommandLine::early_initialize(reinterpret_cast<const char*>(low_physical_to_virtual(multiboot_info_ptr->cmdline))); - s_bsp_processor.early_initialize(0); // Invoke the constructors needed for the kernel heap @@ -127,7 +123,7 @@ extern "C" [[noreturn]] void init() s_bsp_processor.initialize(0); - CommandLine::initialize(); + CommandLine::initialize(reinterpret_cast<const char*>(low_physical_to_virtual(multiboot_info_ptr->cmdline))); MemoryManager::initialize(0); // Invoke all static global constructors in the kernel. |