Skip to content

Commit

Permalink
add dummy network interface for aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
stlankes committed Aug 1, 2023
1 parent b3247cd commit 644be67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/arch/aarch64/kernel/mmio.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use hermit_sync::InterruptTicketMutex;

use crate::drivers::net::NetworkInterface;
use crate::drivers::net::virtio_net::VirtioNetDriver;

pub fn get_network_driver() -> Option<&'static InterruptTicketMutex<dyn NetworkInterface>> {
pub(crate) fn get_network_driver() -> Option<&'static InterruptTicketMutex<VirtioNetDriver>> {
None
}
2 changes: 2 additions & 0 deletions src/drivers/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//! A module containing hermit-rs driver, hermit-rs driver trait and driver specific errors.
pub mod fs;
#[cfg(not(feature = "pci"))]
pub mod mmio;
#[cfg(feature = "tcp")]
pub mod net;
#[cfg(feature = "pci")]
Expand Down

0 comments on commit 644be67

Please sign in to comment.