diff options
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/system-jz4740.c')
-rw-r--r-- | firmware/target/mips/ingenic_jz47xx/system-jz4740.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/system-jz4740.c b/firmware/target/mips/ingenic_jz47xx/system-jz4740.c index c029dd46bb..f78f3592e5 100644 --- a/firmware/target/mips/ingenic_jz47xx/system-jz4740.c +++ b/firmware/target/mips/ingenic_jz47xx/system-jz4740.c | |||
@@ -238,7 +238,7 @@ static char* parse_exception(unsigned int cause) | |||
238 | 238 | ||
239 | void exception_handler(void* stack_ptr, unsigned int cause, unsigned int epc) | 239 | void exception_handler(void* stack_ptr, unsigned int cause, unsigned int epc) |
240 | { | 240 | { |
241 | panicf("Exception occurred: %s [0x%08x] at 0x%08x (stack at 0x%08x)", parse_exception(cause), cause, epc, (unsigned int)stack_ptr); | 241 | panicf("Exception occurred: %s [0x%08x] at 0x%08x (stack at 0x%08x)", parse_exception(cause), read_c0_badvaddr(), epc, (unsigned int)stack_ptr); |
242 | } | 242 | } |
243 | 243 | ||
244 | void tlb_refill_handler(void) | 244 | void tlb_refill_handler(void) |
@@ -308,7 +308,7 @@ static void pll_init(void) | |||
308 | 7, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, | 308 | 7, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, |
309 | 9 | 309 | 9 |
310 | }; | 310 | }; |
311 | int div[5] = {1, 3, 3, 3, 3}; /* divisors of I:S:P:L:M */ | 311 | int div[5] = {0, 3, 3, 3, 3}; /* divisors of I:S:P:L:M */ |
312 | int nf, pllout2; | 312 | int nf, pllout2; |
313 | 313 | ||
314 | cfcr = CPM_CPCCR_CLKOEN | | 314 | cfcr = CPM_CPCCR_CLKOEN | |