Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/interrupt.h

    rd99c1d2 r12bf33a  
    3737
    3838#include <arch/interrupt.h>
    39 #include <typedefs.h>
     39#include <arch/types.h>
    4040#include <proc/task.h>
    4141#include <proc/thread.h>
    4242#include <arch.h>
    4343#include <ddi/irq.h>
    44 #include <stacktrace.h>
    4544
    4645typedef void (* iroutine)(int n, istate_t *istate);
    4746
    48 extern void fault_if_from_uspace(istate_t *istate, const char *fmt, ...);
     47#define fault_if_from_uspace(istate, fmt, ...) \
     48{ \
     49        if (istate_from_uspace(istate)) { \
     50                task_t *task = TASK; \
     51                printf("Task %s (%" PRIu64 ") killed due to an exception at %p: ", task->name, task->taskid, istate_get_pc(istate)); \
     52                printf(fmt "\n", ##__VA_ARGS__); \
     53                task_kill(task->taskid); \
     54                thread_exit(); \
     55        } \
     56}
     57
    4958extern iroutine exc_register(int n, const char *name, iroutine f);
    5059extern void exc_dispatch(int n, istate_t *t);
    5160void exc_init(void);
    52 
    53 extern void irq_initialize_arch(irq_t *irq);
    5461
    5562#endif
Note: See TracChangeset for help on using the changeset viewer.