Kernel: Look for PS/2 devices in the ACPI namespace

This allows finding the PS/2 controller on newer machines that don't
have the 8042 bit set in FADT.
This commit is contained in:
2025-08-14 21:18:29 +03:00
parent 3804d4332b
commit c07188a60e
4 changed files with 289 additions and 55 deletions

View File

@@ -91,14 +91,10 @@ static void parse_command_line()
g_disable_debug = true;
else if (argument.starts_with("ps2="))
{
if (argument == "ps2=auto"_sv)
cmdline.ps2_override = 0xFF;
if (argument.size() != 5 || !isdigit(argument[4]))
dprintln("Invalid ps2= command line argument format '{}'", argument);
else
{
if (argument.size() != 5 || !isdigit(argument[4]))
dprintln("Invalid ps2= command line argument format '{}'", argument);
cmdline.ps2_override = argument[4] - '0';
}
}
else if (argument.size() > 5 && argument.substring(0, 5) == "root=")
cmdline.root = argument.substring(5);