Kernel: Add command line option to disable debug printing

The whole system can crash when debug output and tty output are done at
the same time. This patch is just a hack to prevent the crash :D
This commit is contained in:
2024-08-25 15:02:15 +03:00
parent bec3e8654f
commit 2ce7205c80
2 changed files with 7 additions and 0 deletions

View File

@@ -65,6 +65,7 @@ static bool should_disable_serial(BAN::StringView full_command_line)
return false;
}
extern bool g_disable_debug;
static ParsedCommandLine cmdline;
static void parse_command_line()
@@ -81,6 +82,8 @@ static void parse_command_line()
cmdline.disable_smp = true;
else if (argument == "nousb")
cmdline.disable_usb = true;
else if (argument == "nodebug")
g_disable_debug = true;
else if (argument.starts_with("ps2="))
{
if (argument.size() != 5 || !isdigit(argument[4]))