Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2440 → Rev 2441

/trunk/kernel/generic/include/interrupt.h
48,9 → 48,10
#define fault_if_from_uspace(istate, cmd, ...) \
{ \
if (istate_from_uspace(istate)) { \
klog_printf("Task %llu killed due to an exception at %p.", TASK->taskid, istate_get_pc(istate)); \
task_t *task = TASK; \
klog_printf("Task %llu killed due to an exception at %p.", task->taskid, istate_get_pc(istate)); \
klog_printf(" " cmd, ##__VA_ARGS__); \
task_kill(TASK->taskid); \
task_kill(task->taskid); \
thread_exit(); \
} \
}