Fixed some bugs.

This commit is contained in:
profi200 2017-11-26 03:15:20 +01:00 committed by d0k3
parent 63767e5eae
commit 9268a2f349
4 changed files with 5 additions and 4 deletions

View File

@ -13,8 +13,8 @@ irq_handler GIC_AckIRQ(void)
irq_handler ret = NULL; irq_handler ret = NULL;
if (xrq < MAX_IRQ && handler_table[xrq]) { if (xrq < MAX_IRQ && handler_table[xrq]) {
ret = handler_table[xrq]; ret = handler_table[xrq];
*GIC_IRQEND = xrq;
} }
*GIC_IRQEND = xrq;
return ret; return ret;
} }

View File

@ -23,5 +23,5 @@ main_irq_handler:
.Lskip_irq: .Lskip_irq:
pop {r1,lr} pop {r1,lr}
add sp, sp, r1 @ Restore stack pointer add sp, sp, r1 @ Restore stack pointer
pop {r0-r3,lr} @ Restore registers pop {r0-r3,r12} @ Restore registers
rfeia sp! @ Return From Exception rfeia sp! @ Return From Exception

View File

@ -1783,7 +1783,6 @@ u32 GodMode(int entrypoint) {
return exit_mode; return exit_mode;
} }
I2C_init();
InitSDCardFS(); InitSDCardFS();
AutoEmuNandBase(true); AutoEmuNandBase(true);
InitNandCrypto(entrypoint != ENTRY_B9S); InitNandCrypto(entrypoint != ENTRY_B9S);
@ -2293,7 +2292,6 @@ u32 ScriptRunner(int entrypoint) {
SplashInit("scriptrunner mode"); SplashInit("scriptrunner mode");
u64 timer = timer_start(); u64 timer = timer_start();
I2C_init();
InitSDCardFS(); InitSDCardFS();
AutoEmuNandBase(true); AutoEmuNandBase(true);
InitNandCrypto(entrypoint != ENTRY_B9S); InitNandCrypto(entrypoint != ENTRY_B9S);

View File

@ -8,6 +8,9 @@ void main(int argc, char** argv, int entrypoint)
(void) argc; (void) argc;
(void) argv; (void) argv;
PXI_Reset();
I2C_init();
// Wait for ARM11 // Wait for ARM11
PXI_WaitRemote(PXI_READY); PXI_WaitRemote(PXI_READY);