1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:27:43 +00:00

Kernel: Introduce two new boot arguments to assist with bare metal debug

The first one is for disabling the PS2 controller, the other one is for
disabling physical storage enumeration.
We can't be sure any machine will work with our implementation,
therefore this will help us to test more machines.
This commit is contained in:
Liav A 2021-04-08 21:18:48 +03:00 committed by Andreas Kling
parent 649564585e
commit a0be30f655
4 changed files with 24 additions and 9 deletions

View file

@ -26,6 +26,7 @@
#include <AK/Singleton.h>
#include <Kernel/ACPI/Parser.h>
#include <Kernel/CommandLine.h>
#include <Kernel/Devices/HID/HIDManagement.h>
#include <Kernel/Devices/HID/I8042Controller.h>
@ -125,7 +126,7 @@ 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())
if (!ACPI::Parser::the()->have_8042() || kernel_command_line().disable_ps2_controller())
return;
m_i8042_controller = I8042Controller::initialize();
m_i8042_controller->detect_devices();