2016-05-03 03:05:11 +02:00
|
|
|
#include "memory.h"
|
2016-04-16 18:21:42 +02:00
|
|
|
|
2016-04-29 14:28:37 +02:00
|
|
|
void main(void)
|
2016-04-02 17:58:06 +02:00
|
|
|
{
|
2016-05-03 03:05:11 +02:00
|
|
|
void *payloadAddress = (void *)0x23F00000;
|
2016-04-02 17:58:06 +02:00
|
|
|
|
2016-06-10 21:48:22 +02:00
|
|
|
memcpy(payloadAddress, (void*)0x24F00000, *(u32 *)0x24FFFF04);
|
2016-03-17 00:08:13 +01:00
|
|
|
|
2016-06-14 19:50:38 +02:00
|
|
|
((void (*)(void))0xFFFF0830)(); //Clean and flush the entire DCache, then drain the write buffer
|
|
|
|
|
((void (*)(void))0xFFFF0AB4)(); //Flush the entire ICache
|
|
|
|
|
|
2016-05-03 03:05:11 +02:00
|
|
|
((void (*)())payloadAddress)();
|
2016-04-18 02:55:54 +02:00
|
|
|
}
|