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:
parent
80a3cc47e5
commit
d27cecd729
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue