Compare commits

...

2 Commits

Author SHA1 Message Date
meierj 5acb8043bf fixed merge conflicts
ci / Check build (push) Waiting to run
ci / Check formatting (push) Waiting to run
ci / Check Documentation Build (push) Waiting to run
ci / Clippy (push) Waiting to run
2026-05-17 15:55:05 +02:00
meierj a9c5c8de57 function to invalidate l2cache
ci / Check build (push) Waiting to run
ci / Check formatting (push) Waiting to run
ci / Check Documentation Build (push) Waiting to run
ci / Clippy (push) Waiting to run
2026-05-17 12:49:41 +02:00
+7
View File
@@ -88,3 +88,10 @@ pub fn disable() {
let mut l2c_mmio = unsafe { zynq7000::l2_cache::Registers::new_mmio_fixed() };
l2c_mmio.write_control(Control::new_disabled());
}
/// Function to invalidate l2 cache
pub fn invalidate_all(l2c_mmio: &mut MmioRegisters<'static>) {
l2c_mmio.write_clean_invalidate_by_way(0xffff);
while l2c_mmio.read_cache_sync().busy() {}
compiler_fence(core::sync::atomic::Ordering::SeqCst);
}