mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 21:08:12 +00:00
Kernel: Add boot argument to disable the UHCI Controller
Helps with bare metal debugging, as we can't be sure our implementation will work with a given machine. As reported by someone on Discord, their machine hangs when we attempt the dummy transfer.
This commit is contained in:
parent
e98091ad15
commit
c84107a1ab
4 changed files with 16 additions and 3 deletions
|
@ -26,7 +26,7 @@
|
|||
*/
|
||||
|
||||
#include <AK/Platform.h>
|
||||
|
||||
#include <Kernel/CommandLine.h>
|
||||
#include <Kernel/Debug.h>
|
||||
#include <Kernel/Devices/USB/UHCIController.h>
|
||||
#include <Kernel/Process.h>
|
||||
|
@ -89,6 +89,9 @@ UHCIController& UHCIController::the()
|
|||
|
||||
UNMAP_AFTER_INIT void UHCIController::detect()
|
||||
{
|
||||
if (kernel_command_line().disable_uhci_controller())
|
||||
return;
|
||||
|
||||
PCI::enumerate([&](const PCI::Address& address, PCI::ID id) {
|
||||
if (address.is_null())
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue