Rev 3906 | Rev 4137 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3906 | Rev 4132 | ||
---|---|---|---|
Line 36... | Line 36... | ||
36 | #include <arch/interrupt.h> |
36 | #include <arch/interrupt.h> |
37 | #include <interrupt.h> |
37 | #include <interrupt.h> |
38 | #include <ddi/irq.h> |
38 | #include <ddi/irq.h> |
39 | #include <panic.h> |
39 | #include <panic.h> |
40 | #include <print.h> |
40 | #include <print.h> |
41 | #include <symtab.h> |
- | |
42 | #include <debug.h> |
41 | #include <debug.h> |
43 | #include <console/console.h> |
42 | #include <console/console.h> |
44 | #include <arch/types.h> |
43 | #include <arch/types.h> |
45 | #include <arch/asm.h> |
44 | #include <arch/asm.h> |
46 | #include <arch/barrier.h> |
45 | #include <arch/barrier.h> |
Line 53... | Line 52... | ||
53 | #include <ipc/irq.h> |
52 | #include <ipc/irq.h> |
54 | #include <ipc/ipc.h> |
53 | #include <ipc/ipc.h> |
55 | #include <synch/spinlock.h> |
54 | #include <synch/spinlock.h> |
56 | #include <mm/tlb.h> |
55 | #include <mm/tlb.h> |
57 | 56 | ||
- | 57 | #ifdef CONFIG_SYMTAB |
|
- | 58 | #include <symtab.h> |
|
- | 59 | #endif |
|
- | 60 | ||
58 | #define VECTORS_64_BUNDLE 20 |
61 | #define VECTORS_64_BUNDLE 20 |
59 | #define VECTORS_16_BUNDLE 48 |
62 | #define VECTORS_16_BUNDLE 48 |
60 | #define VECTORS_16_BUNDLE_START 0x5000 |
63 | #define VECTORS_16_BUNDLE_START 0x5000 |
61 | #define VECTOR_MAX 0x7f00 |
64 | #define VECTOR_MAX 0x7f00 |
62 | 65 | ||
Line 135... | Line 138... | ||
135 | 138 | ||
136 | void dump_interrupted_context(istate_t *istate) |
139 | void dump_interrupted_context(istate_t *istate) |
137 | { |
140 | { |
138 | char *ifa, *iipa, *iip; |
141 | char *ifa, *iipa, *iip; |
139 | 142 | ||
- | 143 | #ifdef CONFIG_SYMTAB |
|
140 | ifa = get_symtab_entry(istate->cr_ifa); |
144 | ifa = get_symtab_entry(istate->cr_ifa); |
141 | iipa = get_symtab_entry(istate->cr_iipa); |
145 | iipa = get_symtab_entry(istate->cr_iipa); |
142 | iip = get_symtab_entry(istate->cr_iip); |
146 | iip = get_symtab_entry(istate->cr_iip); |
- | 147 | #else |
|
- | 148 | ifa = iipa = iip = "n/a"; |
|
- | 149 | #endif |
|
143 | 150 | ||
144 | putchar('\n'); |
151 | putchar('\n'); |
145 | printf("Interrupted context dump:\n"); |
152 | printf("Interrupted context dump:\n"); |
146 | printf("ar.bsp=%p\tar.bspstore=%p\n", istate->ar_bsp, |
153 | printf("ar.bsp=%p\tar.bspstore=%p\n", istate->ar_bsp, |
147 | istate->ar_bspstore); |
154 | istate->ar_bspstore); |