1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:27:43 +00:00

Kernel: Mark VirtIO detection/creation functions as UNMAP_AFTER_INIT

This commit is contained in:
Brian Gianforcaro 2021-06-09 00:55:22 -07:00 committed by Andreas Kling
parent 80a3cc47e5
commit d27cecd729

View file

@ -12,7 +12,7 @@
namespace Kernel { namespace Kernel {
void VirtIO::detect() UNMAP_AFTER_INIT void VirtIO::detect()
{ {
if (kernel_command_line().disable_virtio()) if (kernel_command_line().disable_virtio())
return; return;
@ -37,7 +37,7 @@ void VirtIO::detect()
}); });
} }
VirtIODevice::VirtIODevice(PCI::Address address, String class_name) UNMAP_AFTER_INIT VirtIODevice::VirtIODevice(PCI::Address address, String class_name)
: PCI::Device(address, PCI::get_interrupt_line(address)) : PCI::Device(address, PCI::get_interrupt_line(address))
, m_class_name(move(class_name)) , m_class_name(move(class_name))
, m_io_base(IOAddress(PCI::get_BAR0(pci_address()) & ~1)) , m_io_base(IOAddress(PCI::get_BAR0(pci_address()) & ~1))