Kernel: Fix PS/2 legacy controller detection
This was wrong for devices without FADT or pre revision 3 FADT
This commit is contained in:
parent
c7298edf65
commit
56684e753b
|
@ -260,7 +260,7 @@ namespace Kernel::Input
|
||||||
|
|
||||||
const auto* fadt = static_cast<const ACPI::FADT*>(ACPI::ACPI::get().get_header("FACP"_sv, 0));
|
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)
|
if (!fadt || fadt->revision < 3 || fadt->length < iapc_flag_end)
|
||||||
return false;
|
return true;
|
||||||
|
|
||||||
if (!(fadt->iapc_boot_arch & (1 << 1)))
|
if (!(fadt->iapc_boot_arch & (1 << 1)))
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue