Unbreak loader

This commit is contained in:
Aurora Wright 2017-05-17 16:15:32 +02:00
parent 7847646b3e
commit c7bb1f9655
2 changed files with 2 additions and 3 deletions

View File

@ -22,7 +22,6 @@
.align 4 .align 4
.global _start .global _start
_start: _start:
ldr sp, =0x27ffe000
b main b main
.global payloadSize .global payloadSize

View File

@ -118,8 +118,8 @@ void fileDelete(const char *path)
void loadPayload(u32 pressed, const char *payloadPath) void loadPayload(u32 pressed, const char *payloadPath)
{ {
u32 *loaderAddress = (u32 *)0x24FFFE00; u32 *loaderAddress = (u32 *)0x27FFE000;
u8 *payloadAddress = (u8 *)0x27FFE000; u8 *payloadAddress = (u8 *)0x24F00000;
u32 payloadSize = 0, u32 payloadSize = 0,
maxPayloadSize = (u32)((u8 *)loaderAddress - payloadAddress); maxPayloadSize = (u32)((u8 *)loaderAddress - payloadAddress);