1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:18:11 +00:00

Kernel: Disable interrupt signaling for the SD driver

Currently we do not use interrupts for the SD driver, yet we
had enabled the signaling of all of them.
Since we were never acknowledging them, we were getting spammed by
unnecessary interrupts, causing the system to slow down to a crawl.

This commit makes the system boot in less than 1 minute with PIO,
compared to the old 30+ minute boot.
This commit is contained in:
Marco Cutecchia 2023-04-10 16:51:21 +02:00 committed by Sam Atkins
parent e144b477bd
commit 75cc670bcb

View file

@ -81,7 +81,6 @@ ErrorOr<void> SDHostController::initialize()
TRY(reset_host_controller());
m_registers->interrupt_status_enable = 0xffffffff;
m_registers->interrupt_signal_enable = 0xffffffff;
auto card_or_error = try_initialize_inserted_card();
if (card_or_error.is_error() && card_or_error.error().code() != ENODEV) {