diff options
Diffstat (limited to 'Kernel/Bus/VirtIO/Console.cpp')
-rw-r--r-- | Kernel/Bus/VirtIO/Console.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Kernel/Bus/VirtIO/Console.cpp b/Kernel/Bus/VirtIO/Console.cpp index 1dc38fc1f9..38e695a07d 100644 --- a/Kernel/Bus/VirtIO/Console.cpp +++ b/Kernel/Bus/VirtIO/Console.cpp @@ -17,10 +17,9 @@ UNMAP_AFTER_INIT NonnullRefPtr<Console> Console::must_create(PCI::Address addres return adopt_ref_if_nonnull(new Console(address)).release_nonnull(); } -UNMAP_AFTER_INIT Console::Console(PCI::Address address) - : VirtIO::Device(address) - , m_device_id(next_device_id++) +UNMAP_AFTER_INIT void Console::initialize() { + Device::initialize(); if (auto cfg = get_config(ConfigurationType::Device)) { bool success = negotiate_features([&](u64 supported_features) { u64 negotiated = 0; @@ -58,6 +57,12 @@ UNMAP_AFTER_INIT Console::Console(PCI::Address address) } } +UNMAP_AFTER_INIT Console::Console(PCI::Address address) + : VirtIO::Device(address) + , m_device_id(next_device_id++) +{ +} + bool Console::handle_device_config_change() { dbgln("VirtIO::Console: Handle device config change"); |