From eb83a38d127960c067b5b3db93ca048e0e9f18ee Mon Sep 17 00:00:00 2001 From: Ruihan Li Date: Tue, 30 Dec 2025 17:05:37 +0800 Subject: [PATCH] Don't panic in LoongArch64 VirtIO MMIO probe --- kernel/comps/virtio/src/transport/mmio/bus/arch/loongarch.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel/comps/virtio/src/transport/mmio/bus/arch/loongarch.rs b/kernel/comps/virtio/src/transport/mmio/bus/arch/loongarch.rs index f5e355bbf..1c9e7b5e2 100644 --- a/kernel/comps/virtio/src/transport/mmio/bus/arch/loongarch.rs +++ b/kernel/comps/virtio/src/transport/mmio/bus/arch/loongarch.rs @@ -1,8 +1,9 @@ // SPDX-License-Identifier: MPL-2.0 -// TODO: Add `MappedIrqLine` support for Loongarch. +// TODO: Add `MappedIrqLine` support for LoongArch. pub(super) use ostd::irq::IrqLine as MappedIrqLine; pub(super) fn probe_for_device() { - unimplemented!() + // TODO: Probe virtio devices on the MMIO bus in LoongArch. + // Then, register them by calling `super::try_register_mmio_device`. }