Subversion Repositories HelenOS-historic

Rev

Rev 1702 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1702 Rev 1735
Line 54... Line 54...
54
 
54
 
55
#define fault_if_from_uspace(istate, cmd, ...) \
55
#define fault_if_from_uspace(istate, cmd, ...) \
56
{ \
56
{ \
57
    if (istate_from_uspace(istate)) { \
57
    if (istate_from_uspace(istate)) { \
58
                klog_printf(cmd, ##__VA_ARGS__); \
58
                klog_printf(cmd, ##__VA_ARGS__); \
59
                klog_printf("Task %lld got exception at PC:%P. Task killed.", TASK->taskid, istate_get_pc(istate)); \
59
                klog_printf("Task %lld got exception at PC:%p. Task killed.", TASK->taskid, istate_get_pc(istate)); \
60
        task_kill(TASK->taskid); \
60
        task_kill(TASK->taskid); \
61
        thread_exit(); \
61
        thread_exit(); \
62
    } \
62
    } \
63
}
63
}
64
 
64