added IRQs to 3ds11, made the timer faster on 3ds9

This commit is contained in:
Morten Delenk 2017-07-29 10:03:10 +01:00
parent 3a60a712b2
commit 0420a31f8f
3 changed files with 2 additions and 3 deletions

View file

@ -20,6 +20,6 @@ void drivers_init() {
enable_irqs();
*((volatile uint16_t*)0x10003002)=0;
*((volatile uint16_t*)0x10003000)=65;
*((volatile uint16_t*)0x10003002)=0b11000011;
*((volatile uint16_t*)0x10003002)=0b11000000;
*((volatile uint32_t*)0x10001000)|=1<<8;
}

View file

@ -37,7 +37,6 @@ extern "C" cpu_state *handleINT(int number, cpu_state *state) {
else
state->returnAddr -= 4;
}
print_regdump(state);
cpu_state *new_cpu = state;
switch(number) {
case 1:

View file

@ -32,7 +32,7 @@ IRQ_IO::IRQ_IO() {
*((volatile uint32_t*)(0x17E01100+i))=~0;
}
uint32_t intid;
while((intid=*((volatile uint32_t*)0x17E00118))!=1023) {
while((intid=*((volatile uint32_t*)0x17E00118))&1023!=1023) {
*((volatile uint32_t*)0x17E00110)=intid;
}
}