Rev 3857 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3857 | Rev 4132 | ||
---|---|---|---|
Line 37... | Line 37... | ||
37 | #include <arch/interrupt.h> |
37 | #include <arch/interrupt.h> |
38 | #include <interrupt.h> |
38 | #include <interrupt.h> |
39 | #include <mm/as.h> |
39 | #include <mm/as.h> |
40 | #include <arch.h> |
40 | #include <arch.h> |
41 | #include <print.h> |
41 | #include <print.h> |
42 | #include <symtab.h> |
- | |
43 | #include <macros.h> |
42 | #include <macros.h> |
44 | 43 | ||
- | 44 | #ifdef CONFIG_SYMTAB |
|
- | 45 | #include <symtab.h> |
|
- | 46 | #endif |
|
45 | 47 | ||
46 | static unsigned int seed = 10; |
48 | static unsigned int seed = 10; |
47 | static unsigned int seed_real __attribute__ ((section("K_UNMAPPED_DATA_START"))) = 42; |
49 | static unsigned int seed_real __attribute__ ((section("K_UNMAPPED_DATA_START"))) = 42; |
48 | 50 | ||
49 | 51 | ||
Line 119... | Line 121... | ||
119 | static void pht_refill_fail(uintptr_t badvaddr, istate_t *istate) |
121 | static void pht_refill_fail(uintptr_t badvaddr, istate_t *istate) |
120 | { |
122 | { |
121 | char *symbol = ""; |
123 | char *symbol = ""; |
122 | char *sym2 = ""; |
124 | char *sym2 = ""; |
123 | 125 | ||
- | 126 | #ifdef CONFIG_SYMTAB |
|
124 | char *str = get_symtab_entry(istate->pc); |
127 | char *str = get_symtab_entry(istate->pc); |
125 | if (str) |
128 | if (str) |
126 | symbol = str; |
129 | symbol = str; |
127 | str = get_symtab_entry(istate->lr); |
130 | str = get_symtab_entry(istate->lr); |
128 | if (str) |
131 | if (str) |
129 | sym2 = str; |
132 | sym2 = str; |
- | 133 | #endif |
|
130 | 134 | ||
131 | fault_if_from_uspace(istate, |
135 | fault_if_from_uspace(istate, |
132 | "PHT Refill Exception on %p.", badvaddr); |
136 | "PHT Refill Exception on %p.", badvaddr); |
133 | panic("%p: PHT Refill Exception at %p (%s<-%s).", badvaddr, |
137 | panic("%p: PHT Refill Exception at %p (%s<-%s).", badvaddr, |
134 | istate->pc, symbol, sym2); |
138 | istate->pc, symbol, sym2); |