mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
Kernel/HID: Don't assume that ACPI is initialized
This commit is contained in:
parent
b05a6a1701
commit
f7b5352af0
Notes:
sideshowbarker
2024-07-18 18:29:50 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/f7b5352af07 Pull-request: https://github.com/SerenityOS/serenity/pull/6951
1 changed files with 3 additions and 1 deletions
|
@ -107,7 +107,9 @@ UNMAP_AFTER_INIT void HIDManagement::enumerate()
|
|||
// emulation of the PS/2 controller if it was set by the BIOS.
|
||||
// If ACPI indicates we have an i8042 controller and the USB controller was
|
||||
// set to emulate PS/2, we should not initialize the PS/2 controller.
|
||||
if (!ACPI::Parser::the()->have_8042() || kernel_command_line().disable_ps2_controller())
|
||||
if (kernel_command_line().disable_ps2_controller())
|
||||
return;
|
||||
if (ACPI::Parser::the() && !ACPI::Parser::the()->have_8042())
|
||||
return;
|
||||
m_i8042_controller = I8042Controller::initialize();
|
||||
m_i8042_controller->detect_devices();
|
||||
|
|
Loading…
Reference in a new issue