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