mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:58:11 +00:00
Kernel: Slap UNMAP_AFTER_INIT on a bunch more functions
We're now able to unmap 100 KiB of kernel text after init. :^)
This commit is contained in:
parent
e920c74cae
commit
2b2828ae52
36 changed files with 105 additions and 105 deletions
|
@ -37,7 +37,7 @@ namespace PCI {
|
|||
|
||||
static bool test_pci_io();
|
||||
|
||||
static Access::Type detect_optimal_access_type(bool mmio_allowed)
|
||||
UNMAP_AFTER_INIT static Access::Type detect_optimal_access_type(bool mmio_allowed)
|
||||
{
|
||||
if (mmio_allowed && ACPI::is_enabled() && !ACPI::Parser::the()->find_table("MCFG").is_null())
|
||||
return Access::Type::MMIO;
|
||||
|
@ -48,7 +48,7 @@ static Access::Type detect_optimal_access_type(bool mmio_allowed)
|
|||
PANIC("No PCI bus access method detected!");
|
||||
}
|
||||
|
||||
void initialize()
|
||||
UNMAP_AFTER_INIT void initialize()
|
||||
{
|
||||
bool mmio_allowed = kernel_command_line().lookup("pci_mmio").value_or("off") == "on";
|
||||
|
||||
|
@ -61,7 +61,7 @@ void initialize()
|
|||
});
|
||||
}
|
||||
|
||||
bool test_pci_io()
|
||||
UNMAP_AFTER_INIT bool test_pci_io()
|
||||
{
|
||||
klog() << "Testing PCI via manual probing... ";
|
||||
u32 tmp = 0x80000000;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue