OpenCores
URL https://opencores.org/ocsvn/minsoc/minsoc/trunk

Subversion Repositories minsoc

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /minsoc/trunk/sw/support
    from Rev 11 to Rev 2
    Reverse comparison

Rev 11 → Rev 2

/int.c
66,9 → 66,11
/* Main interrupt handler */
void int_main()
{
unsigned long picsr = mfspr(SPR_PICSR); //process only the interrupts asserted at signal catch, ignore all during process
unsigned long picsr = mfspr(SPR_PICSR);
unsigned long i = 0;
 
mtspr(SPR_PICSR, 0);
 
while(i < 32) {
if((picsr & (0x01L << i)) && (int_handlers[i].handler != 0)) {
(*int_handlers[i].handler)(int_handlers[i].arg);
75,9 → 77,6
}
i++;
}
 
mtspr(SPR_PICSR, 0); //clear interrupt status: all modules have level interrupts, which have to be cleared by software,
} //thus this is safe, since non processed interrupts will get re-asserted soon enough
 
}
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2021 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.