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

Kernel/aarch64: Move ifdef in StorageManagement.cpp

The recent changes of removing i386 broke the aarch64 build, and moving
the ifdef fixes the aarch64 build.
This commit is contained in:
Timon Kruiper 2022-12-28 12:38:05 +01:00 committed by Andrew Kaster
parent e9b4e07b0a
commit 51b69be970

View file

@ -102,8 +102,8 @@ UNMAP_AFTER_INIT void StorageManagement::enumerate_pci_controllers(bool force_pi
}
}
#if ARCH(X86_64)
auto subclass_code = static_cast<SubclassID>(device_identifier.subclass_code().value());
#if ARCH(X86_64)
if (subclass_code == SubclassID::IDEController && kernel_command_line().is_ide_enabled()) {
m_controllers.append(PCIIDELegacyModeController::initialize(device_identifier, force_pio));
}