mirror of
https://github.com/memtest86plus/memtest86plus.git
synced 2024-11-27 10:00:17 -06:00
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:
parent
03464dce85
commit
06d670e9a8
@ -26,6 +26,7 @@
|
|||||||
#include "screen.h"
|
#include "screen.h"
|
||||||
#include "smp.h"
|
#include "smp.h"
|
||||||
#include "usbhcd.h"
|
#include "usbhcd.h"
|
||||||
|
#include "vmem.h"
|
||||||
|
|
||||||
#include "read.h"
|
#include "read.h"
|
||||||
#include "print.h"
|
#include "print.h"
|
||||||
@ -658,8 +659,11 @@ void config_init(void)
|
|||||||
if (cmd_line_addr != 0) {
|
if (cmd_line_addr != 0) {
|
||||||
int cmd_line_size = boot_params->cmd_line_size;
|
int cmd_line_size = boot_params->cmd_line_size;
|
||||||
if (cmd_line_size == 0) cmd_line_size = 255;
|
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);
|
parse_command_line((char *)cmd_line_addr, cmd_line_size);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void config_menu(bool initial)
|
void config_menu(bool initial)
|
||||||
|
Loading…
Reference in New Issue
Block a user