Subversion Repositories HelenOS

Rev

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

Rev 1888 Rev 1927
Line 42... Line 42...
42
#include <proc/thread.h>
42
#include <proc/thread.h>
43
#include <arch.h>
43
#include <arch.h>
44
#include <console/klog.h>
44
#include <console/klog.h>
45
#include <ipc/irq.h>
45
#include <ipc/irq.h>
46
 
46
 
47
#ifndef IVT_ITEMS
-
 
48
#   define IVT_ITEMS 0
-
 
49
#endif
-
 
50
 
-
 
51
#ifndef IVT_FIRST
-
 
52
#   define IVT_FIRST 0
-
 
53
#endif
-
 
54
 
-
 
55
#define fault_if_from_uspace(istate, cmd, ...) \
47
#define fault_if_from_uspace(istate, cmd, ...) \
56
{ \
48
{ \
57
    if (istate_from_uspace(istate)) { \
49
    if (istate_from_uspace(istate)) { \
58
        klog_printf("Task %lld killed due to an exception at %p.", TASK->taskid, istate_get_pc(istate)); \
50
        klog_printf("Task %lld killed due to an exception at %p.", TASK->taskid, istate_get_pc(istate)); \
59
        klog_printf("  " cmd, ##__VA_ARGS__); \
51
        klog_printf("  " cmd, ##__VA_ARGS__); \