Changeset 25d7709 in mainline for generic/src/interrupt/interrupt.c


Ignore:
Timestamp:
2006-03-13T20:08:16Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
631ca4d
Parents:
45d6add
Message:

Nicer ia32 interrupt handlers and structures holding interrupted context data.
Unify the name holding interrupted context data on all architectures to be istate.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/interrupt/interrupt.c

    r45d6add r25d7709  
    7272 * CPU is interrupts_disable()'d.
    7373 */
    74 void exc_dispatch(int n, void *stack)
     74void exc_dispatch(int n, istate_t *istate)
    7575{
    7676        ASSERT(n < IVT_ITEMS);
    7777       
    78         exc_table[n].f(n + IVT_FIRST, stack);
     78        exc_table[n].f(n + IVT_FIRST, istate);
    7979}
    8080
    8181/** Default 'null' exception handler */
    82 static void exc_undef(int n, void *stack)
     82static void exc_undef(int n, istate_t *istate)
    8383{
    8484        panic("Unhandled exception %d.", n);
     
    127127
    128128        for (i=0;i < IVT_ITEMS; i++)
    129                 exc_register(i, "undef", exc_undef);
     129                exc_register(i, "undef", (iroutine) exc_undef);
    130130
    131131        cmd_initialize(&exc_info);
Note: See TracChangeset for help on using the changeset viewer.