From 7257dbcaef7db92c99ba5bb970f706d91d745420 Mon Sep 17 00:00:00 2001 From: bunnie Date: Sun, 18 Jul 2021 16:04:44 +0800 Subject: [PATCH] add cache flush after array write --- services/spinor/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/services/spinor/src/main.rs b/services/spinor/src/main.rs index 4fbc2bcc6..131f149bb 100644 --- a/services/spinor/src/main.rs +++ b/services/spinor/src/main.rs @@ -381,6 +381,7 @@ mod implementation { // in other words: if the flash memory is broke, you're broke too, ain't nobody got time for that. } self.ticktimer.ping_wdt(); + xous::arch::cache_flush(); // flush the CPU caches in case the SPINOR call modified memory that's cached SPINOR_RESULT.load(Ordering::Relaxed) }