Subversion Repositories HelenOS

Rev

Rev 1819 | Rev 1888 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1819 Rev 1870
Line 53... Line 53...
53
#endif
53
#endif
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__); \
-
 
59
                klog_printf("Task %lld got exception at PC:%p. Task killed.", TASK->taskid, istate_get_pc(istate)); \
58
        klog_printf("Task %lld killed due to an exception at %p.", TASK->taskid, istate_get_pc(istate)); \
-
 
59
        klog_printf("  " cmd, ##__VA_ARGS__); \
60
        task_kill(TASK->taskid); \
60
        task_kill(TASK->taskid); \
61
        thread_exit(); \
61
        thread_exit(); \
62
    } \
62
    } \
63
}
63
}
64
 
64