mirror of
https://github.com/RGBCube/serenity
synced 2025-07-02 21:52:07 +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
|
@ -108,9 +108,14 @@ UNMAP_AFTER_INIT bool CommandLine::is_vmmouse_enabled() const
|
|||
return lookup("vmmouse").value_or("on") == "on";
|
||||
}
|
||||
|
||||
UNMAP_AFTER_INIT bool CommandLine::is_mmio_enabled() const
|
||||
UNMAP_AFTER_INIT bool CommandLine::is_pci_ecam_enabled() const
|
||||
{
|
||||
return lookup("pci_mmio").value_or("off") == "on";
|
||||
auto value = lookup("pci_ecam").value_or("on");
|
||||
if (value == "on")
|
||||
return true;
|
||||
if (value == "off")
|
||||
return false;
|
||||
PANIC("Unknown PCI ECAM setting: {}", value);
|
||||
}
|
||||
|
||||
UNMAP_AFTER_INIT bool CommandLine::is_legacy_time_enabled() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue