diff --git a/loader/source/main.c b/loader/source/main.c index 1602ac2..4a88190 100644 --- a/loader/source/main.c +++ b/loader/source/main.c @@ -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)(); -} \ No newline at end of file +} diff --git a/source/fs.c b/source/fs.c index c62ae2f..23d625b 100644 --- a/source/fs.c +++ b/source/fs.c @@ -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) {