From 63a4e08a80cbf6291559000e0b318ae9ccc63363 Mon Sep 17 00:00:00 2001 From: bunnie Date: Fri, 21 Oct 2022 03:18:35 +0800 Subject: [PATCH] uh-oh...saw a CI fail on cache flush again. back to the drawing board. --- services/spinor/src/main.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/services/spinor/src/main.rs b/services/spinor/src/main.rs index eaccec311..f20326c98 100644 --- a/services/spinor/src/main.rs +++ b/services/spinor/src/main.rs @@ -527,12 +527,18 @@ mod implementation { /// Not sure why :-/, but, I stopped caring because ".word 0x500F" works! #[inline] fn flush_dcache(&self, _start: u32, _len: u32) { - // This instruction seems to be causing instability, omit it... - #[cfg(not(feature="extra_flush"))] unsafe { core::arch::asm!( ".word 0x500F", + "nop", + "nop", + "nop", + "nop", "fence", + "nop", + "nop", + "nop", + "nop", ); } // augment with manual flushing, because the above instruction didn't seem to do the trick??