Add proper arm11 crt0 and fix race condition

This commit is contained in:
TuxSH
2017-05-24 03:27:30 +02:00
parent d6c6c421e9
commit 067e217909
5 changed files with 49 additions and 6 deletions

View File

@@ -194,9 +194,7 @@ void main(void)
case PREPARE_ARM11_FOR_FIRMLAUNCH:
memcpy((void *)0x1FFFFC00, (void *)prepareForFirmlaunch, prepareForFirmlaunchSize);
*(vu32 *)0x1FFFFFFC = 0;
operation = ARM11_READY;
((void (*)(void))0x1FFFFC00)();
break;
((void (*)(u32, volatile Arm11Operation *))0x1FFFFC00)(ARM11_READY, &operation);
}
operation = ARM11_READY;