mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[ion] Reset: Add memory barriers before/after calling for a core reset:
This commit is contained in:
committed by
LeaNumworks
parent
9fca8e8b8b
commit
588c05f6b4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user