This commit is contained in:
TuxSH 2017-05-17 17:24:48 +02:00
parent 3ac134bc16
commit 73e363d159
2 changed files with 3 additions and 3 deletions

View File

@ -29,10 +29,10 @@ void main(void)
{
void *payloadAddress = (void *)0x23F00000;
memcpy(payloadAddress, (void *)0x24F00000, payloadSize);
memcpy(payloadAddress, (void *)0x24000000, payloadSize);
//Ensure that all memory transfers have completed and that the caches have been flushed
flushCaches();
((void (*)())payloadAddress)();
}
}

View File

@ -121,7 +121,7 @@ void loadPayload(u32 pressed, const char *payloadPath)
u32 *loaderAddress = (u32 *)0x27FFE000;
u8 *payloadAddress = (u8 *)0x24000000;
u32 payloadSize = 0,
maxPayloadSize = (u32)((u8 *)loaderAddress - payloadAddress - 0x1000);
maxPayloadSize = 0xFFE00;
if(payloadPath == NULL)
{