From 118f81d34740defcf06987654ab0b1d3f6c183bc Mon Sep 17 00:00:00 2001 From: TuxSH Date: Fri, 2 Jun 2017 20:36:58 +0200 Subject: [PATCH] 0xBEEF -> 0x1BEEF --- chainloader/source/start.s | 2 +- source/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chainloader/source/start.s b/chainloader/source/start.s index 5dd1349..b598d71 100644 --- a/chainloader/source/start.s +++ b/chainloader/source/start.s @@ -53,5 +53,5 @@ disableMpuAndJumpToEntrypoints: @ Jump to the ARM9 entrypoint mov r0, r4 mov r1, r5 - ldr r2, =0xBEEF + ldr r2, =0x1BEEF bx r6 diff --git a/source/main.c b/source/main.c index 0723d83..0569443 100644 --- a/source/main.c +++ b/source/main.c @@ -49,7 +49,7 @@ void main(int argc, char **argv, u32 magicWord) FirmwareType firmType; FirmwareSource nandType; - if(magicWord == 0xBEEF && argc >= 1) //Normal boot + if((magicWord & 0xFFFF) == 0xBEEF && argc >= 1) //Normal boot { u32 i; for(i = 0; i < 40 && argv[0][i] != 0; i++) //Copy and convert the path to UTF-16