added IRQs to 3ds11, made the timer faster on 3ds9
This commit is contained in:
parent
3a60a712b2
commit
0420a31f8f
3 changed files with 2 additions and 3 deletions
|
@ -20,6 +20,6 @@ void drivers_init() {
|
||||||
enable_irqs();
|
enable_irqs();
|
||||||
*((volatile uint16_t*)0x10003002)=0;
|
*((volatile uint16_t*)0x10003002)=0;
|
||||||
*((volatile uint16_t*)0x10003000)=65;
|
*((volatile uint16_t*)0x10003000)=65;
|
||||||
*((volatile uint16_t*)0x10003002)=0b11000011;
|
*((volatile uint16_t*)0x10003002)=0b11000000;
|
||||||
*((volatile uint32_t*)0x10001000)|=1<<8;
|
*((volatile uint32_t*)0x10001000)|=1<<8;
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,6 @@ extern "C" cpu_state *handleINT(int number, cpu_state *state) {
|
||||||
else
|
else
|
||||||
state->returnAddr -= 4;
|
state->returnAddr -= 4;
|
||||||
}
|
}
|
||||||
print_regdump(state);
|
|
||||||
cpu_state *new_cpu = state;
|
cpu_state *new_cpu = state;
|
||||||
switch(number) {
|
switch(number) {
|
||||||
case 1:
|
case 1:
|
||||||
|
|
|
@ -32,7 +32,7 @@ IRQ_IO::IRQ_IO() {
|
||||||
*((volatile uint32_t*)(0x17E01100+i))=~0;
|
*((volatile uint32_t*)(0x17E01100+i))=~0;
|
||||||
}
|
}
|
||||||
uint32_t intid;
|
uint32_t intid;
|
||||||
while((intid=*((volatile uint32_t*)0x17E00118))!=1023) {
|
while((intid=*((volatile uint32_t*)0x17E00118))&1023!=1023) {
|
||||||
*((volatile uint32_t*)0x17E00110)=intid;
|
*((volatile uint32_t*)0x17E00110)=intid;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue