Make sure the boot command line is accessible during startup.

If we remap other regions, it's possible it could get overlaid.
This commit is contained in:
Martin Whitaker 2022-02-27 16:46:52 +00:00
parent 03464dce85
commit 06d670e9a8

View File

@ -26,6 +26,7 @@
#include "screen.h"
#include "smp.h"
#include "usbhcd.h"
#include "vmem.h"
#include "read.h"
#include "print.h"
@ -658,8 +659,11 @@ void config_init(void)
if (cmd_line_addr != 0) {
int cmd_line_size = boot_params->cmd_line_size;
if (cmd_line_size == 0) cmd_line_size = 255;
cmd_line_addr = map_region(cmd_line_addr, cmd_line_size, true);
if (cmd_line_addr != 0) {
parse_command_line((char *)cmd_line_addr, cmd_line_size);
}
}
}
void config_menu(bool initial)