mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 19:15:07 +00:00
Revert "Kernel: Copy command line to a safe place"
This reverts commit 41c005cb14
.
This commit is contained in:
parent
0db7e04c2e
commit
8a21491d86
3 changed files with 4 additions and 22 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue