one zero too much, delete obsolete module

This commit is contained in:
2025-06-26 19:24:57 +02:00
parent 807d9df0c2
commit ecdb01ca7d
3 changed files with 1 additions and 18 deletions

View File

@ -20,7 +20,6 @@ pub mod gpio;
pub mod gtc;
pub mod i2c;
pub mod log;
pub mod mmu;
pub mod prelude;
pub mod slcr;
pub mod spi;

View File

@ -1,16 +0,0 @@
use zynq_mmu::L1Table;
pub struct Mmu(&'static mut L1Table);
impl Mmu {
#[inline]
pub const fn new(table: &'static mut L1Table) -> Self {
Mmu(table)
}
pub fn update_l1_table(&mut self, f: impl FnOnce(&mut L1Table)) {
// TODO: Disable MMU
f(self.0);
// DSB, ISB? enable MMU again.
}
}