From 75cc670bcbd57de70ac39aeded01475806b2c800 Mon Sep 17 00:00:00 2001 From: Marco Cutecchia Date: Mon, 10 Apr 2023 16:51:21 +0200 Subject: [PATCH] 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. --- Kernel/Storage/SD/SDHostController.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Kernel/Storage/SD/SDHostController.cpp b/Kernel/Storage/SD/SDHostController.cpp index 03a152cc02..b9f3a8f8d6 100644 --- a/Kernel/Storage/SD/SDHostController.cpp +++ b/Kernel/Storage/SD/SDHostController.cpp @@ -81,7 +81,6 @@ ErrorOr 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) {