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 2 to Rev 11
    Reverse comparison

Rev 2 → Rev 11

/int.c
66,11 → 66,9
/* Main interrupt handler */
void int_main()
{
unsigned long picsr = mfspr(SPR_PICSR);
unsigned long picsr = mfspr(SPR_PICSR); //process only the interrupts asserted at signal catch, ignore all during process
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);
77,6 → 75,9
}
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-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.