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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_47/] [or1ksim/] [testbench/] [support/] [int.c] - Diff between revs 376 and 378

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 376 Rev 378
Line 7... Line 7...
 
 
/* Interrupt handlers table */
/* Interrupt handlers table */
struct ihnd int_handlers[MAX_INT_HANDLERS];
struct ihnd int_handlers[MAX_INT_HANDLERS];
 
 
/* Initialize routine */
/* Initialize routine */
int int_init(void)
int int_init()
{
{
        int     i;
        int     i;
 
 
        for(i = 0; i < MAX_INT_HANDLERS; i++) {
        for(i = 0; i < MAX_INT_HANDLERS; i++) {
                int_handlers[i].handler = 0;
                int_handlers[i].handler = 0;
Line 61... Line 61...
 
 
        return 0;
        return 0;
}
}
 
 
/* Main interrupt handler */
/* Main interrupt handler */
void int_main(void)
void int_main()
{
{
        unsigned long   picsr = mfspr(SPR_PICSR);
        unsigned long   picsr = mfspr(SPR_PICSR);
        unsigned long   i = 0;
        unsigned long   i = 0;
 
 
        mtspr(SPR_PICSR, 0);
        mtspr(SPR_PICSR, 0);

powered by: WebSVN 2.1.0

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