Skip to content

Commit

Permalink
setup: parse cmdline as early as possible
Browse files Browse the repository at this point in the history
Signed-off-by: Pawel Wieczorkiewicz <[email protected]>
  • Loading branch information
wipawel committed Jan 24, 2022
1 parent 9d78511 commit 79f2fd3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ void __noreturn __text_init kernel_start(uint32_t multiboot_magic,
init_multiboot(mbi, &kernel_cmdline);
}

/* Parse commandline parameters */
cmdline_parse(kernel_cmdline);

/* Initialize console early */
init_console();

Expand All @@ -152,9 +155,6 @@ void __noreturn __text_init kernel_start(uint32_t multiboot_magic,
/* PIC is initialized - enable local interrupts */
sti();

/* Parse commandline parameters */
cmdline_parse(kernel_cmdline);

/* Initialize Physical Memory Manager */
init_regions();
init_pmm();
Expand Down

0 comments on commit 79f2fd3

Please sign in to comment.