From 16ff930f94a1c5cfa4a98a42a96c9b230024286b Mon Sep 17 00:00:00 2001 From: Tianhao Wang Date: Thu, 1 Feb 2024 17:04:23 +0100 Subject: make device_io a arch independent interface. In arm we will be using MMIO instead of the IO instructions. However the peripherals should use the same interface for IOs. --- src/machine/device_io.rs | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 src/machine/device_io.rs (limited to 'src/machine/device_io.rs') diff --git a/src/machine/device_io.rs b/src/machine/device_io.rs new file mode 100644 index 0000000..4573653 --- /dev/null +++ b/src/machine/device_io.rs @@ -0,0 +1,2 @@ +#[cfg(target_arch = "x86_64")] +pub use crate::arch::x86_64::io_port::*; -- cgit v1.2.3-70-g09d2