mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 22:25:08 +00:00
Kernel: Enable PCI ECAM method again if available
Apparently we don't enable PCI ECAM (MMIO access to the PCI configuration space) even if we can. This is a regression, as it was enabled in the past and in unknown time it was regressed. The CommandLine::is_mmio_enabled method was renamed to CommandLine::is_pci_ecam_enabled to better represent the meaning of this method and what it determines. Also, an UNMAP_AFTER_INIT macro was removed from a method in the MMIOAccess class as it halted the system when the kernel tried to access devices after the boot process.
This commit is contained in:
parent
d09cd85b6c
commit
441e374396
4 changed files with 10 additions and 5 deletions
|
@ -50,7 +50,7 @@ UNMAP_AFTER_INIT static Access::Type detect_optimal_access_type(bool mmio_allowe
|
|||
|
||||
UNMAP_AFTER_INIT void initialize()
|
||||
{
|
||||
bool mmio_allowed = kernel_command_line().is_mmio_enabled();
|
||||
bool mmio_allowed = kernel_command_line().is_pci_ecam_enabled();
|
||||
|
||||
if (detect_optimal_access_type(mmio_allowed) == Access::Type::MMIO)
|
||||
MMIOAccess::initialize(ACPI::Parser::the()->find_table("MCFG"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue