Kernel: Fix PS/2 legacy controller detection

This was wrong for devices without FADT or pre revision 3 FADT
This commit is contained in:
Bananymous 2025-08-29 21:07:33 +03:00
parent c7298edf65
commit 56684e753b
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ namespace Kernel::Input
const auto* fadt = static_cast<const ACPI::FADT*>(ACPI::ACPI::get().get_header("FACP"_sv, 0));
if (!fadt || fadt->revision < 3 || fadt->length < iapc_flag_end)
return false;
return true;
if (!(fadt->iapc_boot_arch & (1 << 1)))
return false;