From 9fca8e8b8b8a9fe45e7fa1b9f4c51e2867d089ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Wed, 18 Dec 2019 11:47:30 +0100 Subject: [PATCH] [ion] Reset: factorize cache disabling --- ion/src/device/shared/drivers/reset.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ion/src/device/shared/drivers/reset.cpp b/ion/src/device/shared/drivers/reset.cpp index d69b2e102..21f93eed1 100644 --- a/ion/src/device/shared/drivers/reset.cpp +++ b/ion/src/device/shared/drivers/reset.cpp @@ -41,8 +41,7 @@ void __attribute__((noinline)) internalFlashJump(uint32_t jumpIsrVectorAddress) void jump(uint32_t jumpIsrVectorAddress) { // Disable cache before reset - Ion::Device::Cache::disableDCache(); - Ion::Device::Cache::disableICache(); + Ion::Device::Cache::disable(); /* Shutdown all clocks and periherals to mimic a hardware reset. */ Board::shutdownPeripherals();