[ion] Reset: Add memory barriers before/after calling for a core reset:

This commit is contained in:
Émilie Feral
2019-12-18 11:48:00 +01:00
committed by LeaNumworks
parent 9fca8e8b8b
commit 588c05f6b4

View File

@@ -12,7 +12,13 @@ using namespace Regs;
void core() {
// Perform a full core reset
Ion::Device::Cache::dsb(); // Complete all memory accesses
CORTEX.AIRCR()->requestReset();
Ion::Device::Cache::dsb();
// Wait until reset
while (true) {
asm("nop");
}
}
/* We isolate the jump code that needs to be executed from the internal