We need to clean and flush caches before jumping to payloads, actually.

This commit is contained in:
TuxSH
2016-06-14 19:50:38 +02:00
parent 159c9cb475
commit 61684ecb68
6 changed files with 49 additions and 9 deletions

View File

@@ -6,5 +6,8 @@ void main(void)
memcpy(payloadAddress, (void*)0x24F00000, *(u32 *)0x24FFFF04);
((void (*)(void))0xFFFF0830)(); //Clean and flush the entire DCache, then drain the write buffer
((void (*)(void))0xFFFF0AB4)(); //Flush the entire ICache
((void (*)())payloadAddress)();
}