[ion] Reset: factorize cache disabling

This commit is contained in:
Émilie Feral
2019-12-18 11:47:30 +01:00
committed by LeaNumworks
parent 7b7447b110
commit 9fca8e8b8b

View File

@@ -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();