Add a command line option to disable the big PASS/FAIL status display.

This commit is contained in:
Martin Whitaker 2022-12-29 14:23:39 +00:00
parent 5a2bc4c960
commit e35cb5b964
4 changed files with 7 additions and 1 deletions

View File

@ -129,6 +129,8 @@ recognised:
* disables ACPI table parsing and the use of multiple CPU cores
* nobench
* disables the integrated memory benchmark
* nobigstatus
* disables the big PASS/FAIL pop-up status display
* nosm
* disables SMBUS/SPD parsing, DMI decoding and memory benchmark
* nopause

View File

@ -91,6 +91,7 @@ bool exclude_ecores = true;
bool smp_enabled = true;
bool enable_big_status = true;
bool enable_temperature = true;
bool enable_trace = false;
@ -194,6 +195,8 @@ static void parse_option(const char *option, const char *params)
parse_serial_params(params);
} else if (strncmp(option, "nobench", 8) == 0) {
enable_bench = false;
} else if (strncmp(option, "nobigstatus", 12) == 0) {
enable_big_status = false;
} else if (strncmp(option, "noehci", 7) == 0) {
usb_init_options |= USB_IGNORE_EHCI;
} else if (strncmp(option, "nopause", 8) == 0) {

View File

@ -51,6 +51,7 @@ extern bool exclude_ecores;
extern bool smp_enabled;
extern bool enable_big_status;
extern bool enable_temperature;
extern bool enable_trace;

View File

@ -356,7 +356,7 @@ void display_temperature(void)
void display_big_status(bool pass)
{
if (big_status_displayed) {
if (!enable_big_status || big_status_displayed) {
return;
}