1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-10 14:11:43 +00:00

Fix bug in crt0

This commit is contained in:
TuxSH 2018-05-08 14:44:28 +02:00
parent 461e886244
commit d43255d484
3 changed files with 5 additions and 0 deletions

View file

@ -41,6 +41,8 @@ _start:
ldr r0, =__program_argc
ldr r1, =__program_argv
ldr lr, =__program_exit
ldr r0, [r0]
ldr r1, [r1]
b main
/* No need to include this in normal programs: */

View file

@ -47,6 +47,7 @@ int main(int argc, void **argv) {
g_stage2_args = (stage2_args_t *)argv[STAGE2_ARGV_ARGUMENT_STRUCT];
if(g_stage2_args->version != 0) {
printf("Error: Incorrect Stage2 args version (expected %lu, got %lu)!\n", 0lu, g_stage2_args->version);
generic_panic();
}

View file

@ -41,6 +41,8 @@ _start:
ldr r0, =__program_argc
ldr r1, =__program_argv
ldr lr, =__program_exit
ldr r0, [r0]
ldr r1, [r1]
b main
/* No need to include this in normal programs: */