From 73e363d159d059ffc78406b95d8b6d1a6af7d614 Mon Sep 17 00:00:00 2001 From: TuxSH Date: Wed, 17 May 2017 17:24:48 +0200 Subject: [PATCH] Fix derp --- loader/source/main.c | 4 ++-- source/fs.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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) {