summaryrefslogtreecommitdiff
path: root/firmware/target/mips/ingenic_jz47xx/system-jz4740.c
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-02-23 16:10:46 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-02-23 16:10:46 +0000
commit9bcb96f4908c480727de5cafa804d476c6819790 (patch)
treee3ae0054731c045594c67f10a07b3bfee5283a5f /firmware/target/mips/ingenic_jz47xx/system-jz4740.c
parent2e6d604bb60b84426596449e09a99e475ab5d69f (diff)
downloadrockbox-9bcb96f4908c480727de5cafa804d476c6819790.tar.gz
rockbox-9bcb96f4908c480727de5cafa804d476c6819790.zip
Ingenic Jz4740:
* Fix USB issues + add DMA support (doesn't work fully) * Make exception handler a bit more descriptive git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20091 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/system-jz4740.c')
-rw-r--r--firmware/target/mips/ingenic_jz47xx/system-jz4740.c4
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
239void exception_handler(void* stack_ptr, unsigned int cause, unsigned int epc) 239void 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
244void tlb_refill_handler(void) 244void 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 |