Rev 4132 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4132 | Rev 4137 | ||
---|---|---|---|
Line 49... | Line 49... | ||
49 | #include <synch/spinlock.h> |
49 | #include <synch/spinlock.h> |
50 | #include <arch/ddi/ddi.h> |
50 | #include <arch/ddi/ddi.h> |
51 | #include <ipc/sysipc.h> |
51 | #include <ipc/sysipc.h> |
52 | #include <interrupt.h> |
52 | #include <interrupt.h> |
53 | #include <ddi/irq.h> |
53 | #include <ddi/irq.h> |
54 | - | ||
55 | #ifdef CONFIG_SYMTAB |
- | |
56 | #include <symtab.h> |
54 | #include <symtab.h> |
57 | #endif |
- | |
58 | 55 | ||
59 | /* |
56 | /* |
60 | * Interrupt and exception dispatching. |
57 | * Interrupt and exception dispatching. |
61 | */ |
58 | */ |
62 | 59 | ||
Line 66... | Line 63... | ||
66 | 63 | ||
67 | void decode_istate(istate_t *istate) |
64 | void decode_istate(istate_t *istate) |
68 | { |
65 | { |
69 | char *symbol; |
66 | char *symbol; |
70 | 67 | ||
71 | #ifdef CONFIG_SYMTAB |
- | |
72 | symbol = get_symtab_entry(istate->eip); |
68 | symbol = symtab_fmt_name_lookup(istate->eip); |
73 | if (!symbol) |
- | |
74 | symbol = ""; |
- | |
75 | #else |
- | |
76 | symbol = ""; |
- | |
77 | #endif |
- | |
78 | 69 | ||
79 | if (CPU) |
70 | if (CPU) |
80 | printf("----------------EXCEPTION OCCURED (cpu%u)----------------\n", CPU->id); |
71 | printf("----------------EXCEPTION OCCURED (cpu%u)----------------\n", CPU->id); |
81 | else |
72 | else |
82 | printf("----------------EXCEPTION OCCURED----------------\n"); |
73 | printf("----------------EXCEPTION OCCURED----------------\n"); |