Fix screen issue, etc.

This commit is contained in:
TuxSH 2017-05-17 17:16:16 +02:00
parent c7bb1f9655
commit 3ac134bc16
3 changed files with 4 additions and 2 deletions

View File

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

View File

@ -119,9 +119,9 @@ void fileDelete(const char *path)
void loadPayload(u32 pressed, const char *payloadPath) void loadPayload(u32 pressed, const char *payloadPath)
{ {
u32 *loaderAddress = (u32 *)0x27FFE000; u32 *loaderAddress = (u32 *)0x27FFE000;
u8 *payloadAddress = (u8 *)0x24F00000; u8 *payloadAddress = (u8 *)0x24000000;
u32 payloadSize = 0, u32 payloadSize = 0,
maxPayloadSize = (u32)((u8 *)loaderAddress - payloadAddress); maxPayloadSize = (u32)((u8 *)loaderAddress - payloadAddress - 0x1000);
if(payloadPath == NULL) if(payloadPath == NULL)
{ {

View File

@ -58,6 +58,7 @@ static void invokeArm11Function(void (*func)())
if(!hasCopiedStub) if(!hasCopiedStub)
{ {
arm11Entry = (vu32 *)((ISSIGHAX) ? 0x1FFFFFFC : 0x1FFFFFF8); arm11Entry = (vu32 *)((ISSIGHAX) ? 0x1FFFFFFC : 0x1FFFFFF8);
flushDCacheRange(&arm11Entry, 4);
memcpy((void *)ARM11_STUB_ADDRESS, arm11Stub, 0x2C); memcpy((void *)ARM11_STUB_ADDRESS, arm11Stub, 0x2C);
hasCopiedStub = true; hasCopiedStub = true;
} }