Changeset 25d7709 in mainline for generic


Ignore:
Timestamp:
2006-03-13T20:08:16Z (20 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.

Location:
generic
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • generic/include/interrupt.h

    r45d6add r25d7709  
    4242
    4343extern iroutine exc_register(int n, const char *name, iroutine f);
    44 extern void exc_dispatch(int n, void *stack);
     44extern void exc_dispatch(int n, istate_t *t);
    4545void exc_init(void);
    4646
  • generic/include/typedefs.h

    r45d6add r25d7709  
    8383typedef struct cmd_info cmd_info_t;
    8484
    85 typedef void (* iroutine)(int n, void *stack);
     85typedef struct istate istate_t;
     86typedef void (* iroutine)(int n, istate_t *istate);
    8687
    8788typedef struct hash_table hash_table_t;
  • 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.