From c7bb1f9655da26ebdb908e52cf4f0693daabeaca Mon Sep 17 00:00:00 2001 From: Aurora Wright Date: Wed, 17 May 2017 16:15:32 +0200 Subject: [PATCH] Unbreak loader --- loader/source/start.s | 1 - source/fs.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/loader/source/start.s b/loader/source/start.s index 4dd90e5..8dd5747 100644 --- a/loader/source/start.s +++ b/loader/source/start.s @@ -22,7 +22,6 @@ .align 4 .global _start _start: - ldr sp, =0x27ffe000 b main .global payloadSize diff --git a/source/fs.c b/source/fs.c index 8e4eceb..ed479fe 100644 --- a/source/fs.c +++ b/source/fs.c @@ -118,8 +118,8 @@ void fileDelete(const char *path) void loadPayload(u32 pressed, const char *payloadPath) { - u32 *loaderAddress = (u32 *)0x24FFFE00; - u8 *payloadAddress = (u8 *)0x27FFE000; + u32 *loaderAddress = (u32 *)0x27FFE000; + u8 *payloadAddress = (u8 *)0x24F00000; u32 payloadSize = 0, maxPayloadSize = (u32)((u8 *)loaderAddress - payloadAddress);