mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 15:15:07 +00:00
Kernel: Initialize serial debug after setting kernel command-line
This commit is contained in:
parent
3184086679
commit
b4600f2996
1 changed files with 2 additions and 1 deletions
|
@ -124,7 +124,6 @@ const char* kernel_cmdline;
|
||||||
extern "C" [[noreturn]] UNMAP_AFTER_INIT void init(BootInfo const& boot_info)
|
extern "C" [[noreturn]] UNMAP_AFTER_INIT void init(BootInfo const& boot_info)
|
||||||
{
|
{
|
||||||
g_in_early_boot = true;
|
g_in_early_boot = true;
|
||||||
setup_serial_debug();
|
|
||||||
|
|
||||||
multiboot_info_ptr = boot_info.multiboot_info_ptr;
|
multiboot_info_ptr = boot_info.multiboot_info_ptr;
|
||||||
start_of_prekernel_image = boot_info.start_of_prekernel_image;
|
start_of_prekernel_image = boot_info.start_of_prekernel_image;
|
||||||
|
@ -141,6 +140,8 @@ extern "C" [[noreturn]] UNMAP_AFTER_INIT void init(BootInfo const& boot_info)
|
||||||
boot_pd_kernel_pt1023 = boot_info.boot_pd_kernel_pt1023;
|
boot_pd_kernel_pt1023 = boot_info.boot_pd_kernel_pt1023;
|
||||||
kernel_cmdline = boot_info.kernel_cmdline;
|
kernel_cmdline = boot_info.kernel_cmdline;
|
||||||
|
|
||||||
|
setup_serial_debug();
|
||||||
|
|
||||||
// We need to copy the command line before kmalloc is initialized,
|
// We need to copy the command line before kmalloc is initialized,
|
||||||
// as it may overwrite parts of multiboot!
|
// as it may overwrite parts of multiboot!
|
||||||
CommandLine::early_initialize(kernel_cmdline);
|
CommandLine::early_initialize(kernel_cmdline);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue